From: Rafael J. Wysocki Date: Sat, 6 Jan 2007 00:36:28 +0000 (-0800) Subject: [PATCH] swsusp: Do not fail if resume device is not set X-Git-Tag: v2.6.20-rc4~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bf236874292fd073c6bdd27f89c3d9e81a79cbc;p=pandora-kernel.git [PATCH] swsusp: Do not fail if resume device is not set In the kernels later than 2.6.19 there is a regression that makes swsusp fail if the resume device is not explicitly specified. It can be fixed by adding an additional parameter to mm/swapfile.c:swap_type_of() allowing us to pass the (struct block_device *) corresponding to the first available swap back to the caller. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed