1. zs_malloc() returns error code instead of 0 when error happens. 2. check parameter handle in zs_free().
Hui Zhu (1): zsmalloc: zs_malloc: return ERR_PTR on failure
Sergey Senozhatsky (1): mm/zsmalloc: do not attempt to free IS_ERR handle
drivers/block/zram/zram_drv.c | 10 +++++----- mm/zsmalloc.c | 15 +++++++++------ 2 files changed, 14 insertions(+), 11 deletions(-)