]> www.infradead.org Git - users/hch/block.git/commit
PM/hibernate: remove the bogus call to get_gendisk in software_resume
authorChristoph Hellwig <hch@lst.de>
Mon, 31 Aug 2020 13:21:52 +0000 (15:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 23 Sep 2020 18:24:53 +0000 (20:24 +0200)
commit1f910b4bf5e18048a461d146caa0bbec8586f7ad
treed9696c14ffa4c49e3f5be018393fe30aa3c044fd
parent46844a1e39f5252c86262a390007084efc09ae19
PM/hibernate: remove the bogus call to get_gendisk in software_resume

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>
kernel/power/hibernate.c