[PATCH] swsusp: prevent possible memory leak
commitf2d613799af915da1fd78463ba8ec5086a0d6f92
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 28 Sep 2005 04:45:32 +0000 (27 21:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Sep 2005 14:46:40 +0000 (28 07:46 -0700)
treedba02c1108bd9e101ce4986c458a2fa2a400eb56
parent254b54771cc4c00002f796be65d2885191dca9dc
[PATCH] swsusp: prevent possible memory leak

Prevent swsusp from leaking some memory in case of an error in
read_pagedir().  It also prevents the BUG_ON() from triggering if there's
an error while reading swap.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/swsusp.c