diff options
| author | Xiaoke Wang <[email protected]> | 2022-04-07 09:33:49 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2022-10-03 19:32:03 +0000 |
| commit | 117a1542c0bc9bcce0c5b9bc63ff54dc967acdf5 (patch) | |
| tree | 098e919b4635fe3ec155a9d7e9efc55ae971c7b6 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | clk: mmp: pxa168: control shared SDH bits with separate clock (diff) | |
| download | kernel-117a1542c0bc9bcce0c5b9bc63ff54dc967acdf5.tar.gz kernel-117a1542c0bc9bcce0c5b9bc63ff54dc967acdf5.zip | |
clk: pxa: add a check for 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]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions
