net: hns3: Modify the kcalloc memory request to not sleep
driver inclusion category: bufgix bugzilla: 12852 CVE: NA When kcalloc uses GFP_KERNEL, if it encounters insufficient memory, it will trigger sleep, so it may cause deadlock. Modified to GFP_ATOMIC, if the request for memory fails, it will be returned directly. Signed-off-by: Nliuzhongzhu <liuzhongzhu@huawei.com> Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录