aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-12-12 17:11:17 +0800
committerDmitry Baryshkov <[email protected]>2023-01-18 03:07:07 +0200
commitd839f0811a31322c087a859c2b181e2383daa7be (patch)
treea88f95238d889eef7307a46fa3989dfd57f78ee4 /lib/memory-notifier-error-inject.c
parentd26407788cc0cf641d760363038ddc22efcf0a33 (diff)
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: 20224d715a88 ("drm/msm/submit: Move copy_from_user ahead of locking bos") Signed-off-by: Jiasheng Jiang <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/514678/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions