Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information