[PATCH] Allow software_suspend to fail
From: Pavel Machek <pavel@ucw.cz> software_suspend() can fail for quite a lot of reasons (for example not enough swapspace). However current interface returned void, so you could not propagate error back to userland. This fixes it. Plus __read_suspend_image() is only done during init time, so we might as well mark it __init.
Showing
Please register or sign in to comment