linux-kernel-test/drivers/staging/ramzswap
Nitin Gupta c25d75a234 Staging: ramzswap: Handle case for invalid backing swap
Currently, we crash (issue BUG_ON) if backing swap
disk size is zero. This can happen is user specified
an extended partition or simply a bad disk as backing
swap. A crash is really an unpleasant surprise to user
for such trivial problems.

Now, we check for this condition and simply fail device
initialization if this is the case.

Additional cleanups:
 * use static for all functions
 * remove extra newline between functions
 * memset backing_swap_name to NULL on device reset

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-03 16:42:53 -08:00
..
Kconfig Staging: ramzswap: Minor spelling fixes 2010-03-03 16:42:38 -08:00
Makefile
ramzswap_drv.c Staging: ramzswap: Handle case for invalid backing swap 2010-03-03 16:42:53 -08:00
ramzswap_drv.h Staging: ramzswap: Use lock for 64-bit stats 2010-03-03 16:42:53 -08:00
ramzswap_ioctl.h Staging: ramzswap: Use lock for 64-bit stats 2010-03-03 16:42:53 -08:00
ramzswap.txt Staging: ramzswap: Minor spelling fixes 2010-03-03 16:42:38 -08:00
TODO Staging: ramzswap: remove ARM specific d-cache hack 2009-12-23 11:27:49 -08:00
xvmalloc_int.h Staging: ramzswap: Minor spelling fixes 2010-03-03 16:42:38 -08:00
xvmalloc.c Staging: ramzswap: Minor spelling fixes 2010-03-03 16:42:38 -08:00
xvmalloc.h