Skip to content
Commit d839f081 authored by 蒋家盛's avatar 蒋家盛 Committed by Dmitry Baryshkov
Browse files

drm/msm/gem: Add check for kmalloc

Add the check for the return value of kmalloc in order to avoid
NULL pointer dereference in copy_from_user.

Fixes: 20224d71

 ("drm/msm/submit: Move copy_from_user ahead of locking bos")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/514678/
Link: https://lore.kernel.org/r/20221212091117.43511-1-jiasheng@iscas.ac.cn
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent d2640778
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment