diff options
author | Jerome Marchand <jmarchan@redhat.com> | 2011-09-06 15:02:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-06 16:56:16 -0700 |
commit | 5a18c53147205797da3dbc5a7c2678d16709d2dc (patch) | |
tree | f0a801f1e99b8d3bfdb6c1cf2f3be5f6345f8778 /drivers/staging/rtl8712/rtl871x_led.h | |
parent | 0900beae178a84e653d9088979cf3014babc097e (diff) | |
download | op-kernel-dev-5a18c53147205797da3dbc5a7c2678d16709d2dc.zip op-kernel-dev-5a18c53147205797da3dbc5a7c2678d16709d2dc.tar.gz |
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>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_led.h')
0 files changed, 0 insertions, 0 deletions