Christoph Hellwig 957559da13 PM: hibernate: remove the bogus call to get_gendisk() in software_resume()
[ Upstream commit 428805c0c5e76ef643b1fbc893edfb636b3d8aef ]

get_gendisk grabs a reference on the disk and file operation, so this
code will leak both of them while having absolutely no use for the
gendisk itself.

This effectively reverts commit 2df83fa4bce421f ("PM / Hibernate: Use
get_gendisk to verify partition if resume_file is integer format")

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:05:43 +01:00
..
2020-09-23 08:46:14 +02:00
2019-11-28 18:28:55 +01:00
2020-04-02 17:20:28 +02:00
2018-08-03 07:55:12 +02:00
2020-04-02 17:20:26 +02:00
2020-04-24 07:58:54 +02:00
2018-08-03 07:55:24 +02:00
2020-01-12 11:24:12 +01:00
2018-05-09 09:50:20 +02:00
2016-09-22 20:00:36 -05:00