-
由 Li Qiong 提交于
stable inclusion from stable-v5.10.143 commit 44739b5aae3a0a8be4c45635617c70d74e3a5687 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0U6 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=44739b5aae3a0a8be4c45635617c70d74e3a5687 -------------------------------- [ Upstream commit d46c742f ] As the possible failure of the kmalloc(), it should be better to fix this error path, check and return '-ENOMEM' error code. Signed-off-by: NLi Qiong <liqiong@nfschina.com> Signed-off-by: NHelge Deller <deller@gmx.de> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com> Reviewed-by: NZheng Zengkai <zhengzengkai@huawei.com>
40c67f07