PM / Hibernate: Use get_gendisk to verify partition if resume_file is integer format
authorMinho Ban <mhban@samsung.com>
Mon, 14 May 2012 19:45:31 +0000 (21:45 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Jul 2012 08:38:47 +0000 (13:38 +0530)
commit2ceed75257f6b0c279d889bb173fc4c64daa5ae6
tree8999582375f9a27c75181f8325f4def29ae4d624
parentd7a27dbfa6553d9e094fb6bc48b99d6fb4e00d57
PM / Hibernate: Use get_gendisk to verify partition if resume_file is integer format

Sometimes resume= parameter comes in integer style (e.g. major:minor)
and then name_to_dev_t can not detect partition properly. (especially
async device like usb, mmc).

This patch calls get_gendisk() if resumewait is true and resume_file
is in integer format to work around this problem.

Signed-off-by: Minho Ban <mhban@samsung.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/kernel-parameters.txt
kernel/power/hibernate.c