Commit 53dc780c authored by Yuan Chen's avatar Yuan Chen Committed by Greg Kroah-Hartman
Browse files

drm/msm: Add error handling for krealloc in metadata setup



[ Upstream commit 1c8c3540 ]

Function msm_ioctl_gem_info_set_metadata() now checks for krealloc
failure and returns -ENOMEM, avoiding potential NULL pointer dereference.
Explicitly avoids __GFP_NOFAIL due to deadlock risks and allocation constraints.

Signed-off-by: default avatarYuan Chen <chenyuan@kylinos.cn>
Patchwork: https://patchwork.freedesktop.org/patch/661235/


Signed-off-by: default avatarRob Clark <robin.clark@oss.qualcomm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 20406ace
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment