[PATCH] swsusp: remove wrong code from data_free
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 28 Sep 2005 04:45:31 +0000 (21:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Sep 2005 14:46:40 +0000 (07:46 -0700)
commit254b54771cc4c00002f796be65d2885191dca9dc
treebb9503e93d40da3f5a19aa2db45f3e31338e5a63
parent249a6771afcdfaca0ac178f63343aff2c4dc2853
[PATCH] swsusp: remove wrong code from data_free

The following patch removes some wrong code from the data_free() function
in swsusp.

This function could only be called if there's an error while writing the
suspend image to swap, so it is not triggered easily.  However, if
triggered, it would probably corrupt some memory.

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