]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Hibernate: Do not oops on resume if image data are incorrect
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 11 Nov 2008 20:32:44 +0000 (21:32 +0100)
committerLen Brown <len.brown@intel.com>
Fri, 19 Dec 2008 09:40:35 +0000 (04:40 -0500)
commit69643279a88dea000ac2f858091d0e365f778245
treec6b9a678ccfe9a4e22f747cb05b1bcf789e1b8d0
parentba84ed9546e91348fdf3ff2bff859b0ee53b407a
Hibernate: Do not oops on resume if image data are incorrect

During resume from hibernation using the userland interface image
data are being passed from the used space process to the kernel.
These data need not be valid, but currently the kernel sometimes
oopses if it gets invalid image data, which is wrong.  Make the
kernel return error codes to the user space in such cases.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
kernel/power/snapshot.c