From: Jerome Marchand Date: Tue, 6 Sep 2011 13:02:12 +0000 (+0200) Subject: staging: zram: prevent accessing an unallocated table when init fails early X-Git-Tag: v3.2-rc1~169^2^2~614 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a18c53147205797da3dbc5a7c2678d16709d2dc;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed