diff options
| author | Xiaoke Wang <[email protected]> | 2022-03-24 09:15:08 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2022-04-06 16:13:46 +0000 |
| commit | f75e582b0c3ee8f0bddc2248cc8b9175f29c5937 (patch) | |
| tree | a720ac69e01e0754438399b8922529fe1ec2a5d6 /tools/testing/radix-tree/linux.c | |
| parent | dt-bindings: display/msm: another fix for the dpu-qcm2290 example (diff) | |
| download | kernel-f75e582b0c3ee8f0bddc2248cc8b9175f29c5937.tar.gz kernel-f75e582b0c3ee8f0bddc2248cc8b9175f29c5937.zip | |
drm/msm/disp: check the return value of kzalloc()
kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it to
prevent potential wrong memory access.
Signed-off-by: Xiaoke Wang <[email protected]>
Reviewed-by: Abhinav Kumar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/linux.c')
0 files changed, 0 insertions, 0 deletions
