diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2022-12-06 15:48:19 +0800 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-01-24 11:45:44 +0200 |
commit | 13fcfcb2a9a4787fe4e49841d728f6f2e9fa6911 (patch) | |
tree | 1230f0aef9a4791741c17d9818f91b5d85a08570 /scripts/clang-tools/gen_compile_commands.py | |
parent | 93340e10b9c5fc86730d149636e0aa8b47bb5a34 (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 <jiasheng@iscas.ac.cn>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/514154/
Link: https://lore.kernel.org/r/20221206074819.18134-1-jiasheng@iscas.ac.cn
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions