Commit dfdb38d0 authored by Li Qiong's avatar Li Qiong Committed by Jialin Zhang
Browse files

parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()

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: default avatarLi Qiong <liqiong@nfschina.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent bb2befc1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment