diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-10-07 22:37:35 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2009-11-03 11:01:46 +0100 |
commit | 76b57e613f6006ff525a17876c89326d127cadc9 (patch) | |
tree | 244d876f24581fb40d1900003c55b1c7ca5abb91 /include/scsi | |
parent | PM / yenta: Split resume into early and late parts (rev. 4) (diff) | |
download | linux-76b57e613f6006ff525a17876c89326d127cadc9.tar.xz linux-76b57e613f6006ff525a17876c89326d127cadc9.zip |
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 <jirislaby@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions