From: Jiri Slaby Date: Wed, 7 Oct 2009 20:37:35 +0000 (+0200) Subject: PM / Hibernate: Fix blkdev refleaks X-Git-Tag: v2.6.32-rc6~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b57e613f6006ff525a17876c89326d127cadc9;p=pandora-kernel.git PM / Hibernate: Fix blkdev refleaks While cruising through the swsusp code I found few blkdev reference leaks of resume_bdev. swsusp_read: remove blkdev_put altogether. Some fail paths do not do that. swsusp_check: make sure we always put a reference on fail paths software_resume: all fail paths between swsusp_check and swsusp_read omit swsusp_close. Add it in those cases. And since swsusp_read doesn't drop the reference anymore, do it here unconditionally. [rjw: Fixed a small coding style issue.] Signed-off-by: Jiri Slaby Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed