Unverified Commit d4bd6f22 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1954 zs_malloc: return ERR_PTR on failure

Merge Pull Request from: @ci-robot 
 
PR sync from: Jinjiang Tu <tujinjiang@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/F75QF6TCLSEE5B5P7TR44NDZIQ5SDL46/ 
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


-- 
2.25.1
 
https://gitee.com/openeuler/kernel/issues/I7TWVA 
 
Link:https://gitee.com/openeuler/kernel/pulls/1954

 

Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 8ba3ffe1 f1e6c548
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment