aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-12-06 15:48:19 +0800
committerDmitry Baryshkov <[email protected]>2023-01-24 11:45:44 +0200
commit13fcfcb2a9a4787fe4e49841d728f6f2e9fa6911 (patch)
tree1230f0aef9a4791741c17d9818f91b5d85a08570 /lib/test_fortify/write_overflow-strlcpy-src.c
parent93340e10b9c5fc86730d149636e0aa8b47bb5a34 (diff)
drm/msm/mdp5: Add check for kzalloc
As kzalloc may fail and return NULL pointer, it should be better to check the return value in order to avoid the NULL pointer dereference. Fixes: 1cff7440a86e ("drm/msm: Convert to using __drm_atomic_helper_crtc_reset() for reset.") Signed-off-by: Jiasheng Jiang <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/514154/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions