alistair23-linux/drivers/staging/zram
Jerome Marchand 5a18c53147 staging: zram: prevent accessing an unallocated table when init fails early
When the allocation of zram->table fails, we set zram->disksize to zero
to prevent accessing the unallocated table entries during cleanup.
However, we currently don't take this precaution when the initialization
fails earlier.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-09-06 16:56:16 -07:00
..
Kconfig staging: Allow sharing xvmalloc for zram and zcache 2011-02-23 14:02:56 -08:00
Makefile staging: Allow sharing xvmalloc for zram and zcache 2011-02-23 14:02:56 -08:00
xvmalloc.c staging: Allow sharing xvmalloc for zram and zcache 2011-02-23 14:02:56 -08:00
xvmalloc.h Staging: Rename ramzswap files to zram 2010-06-18 12:46:42 -07:00
xvmalloc_int.h zram/xvmalloc: Close 32byte hole on 64bit CPUs 2011-02-04 13:29:11 -08:00
zram.txt Staging: zram: Update zram documentation 2010-08-31 15:36:36 -07:00
zram_drv.c staging: zram: prevent accessing an unallocated table when init fails early 2011-09-06 16:56:16 -07:00
zram_drv.h staging: zram: fix zram locking 2011-09-06 16:56:15 -07:00
zram_sysfs.c staging: zram: fix zram locking 2011-09-06 16:56:15 -07:00