git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0900bea
)
staging: zram: prevent accessing an unallocated table when init fails early
author
Jerome Marchand
<jmarchan@redhat.com>
Tue, 6 Sep 2011 13:02:12 +0000
(15:02 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 6 Sep 2011 23:56:16 +0000
(16:56 -0700)
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>
No differences found