diff options
author | 2022-03-24 16:26:23 +0800 | |
---|---|---|
committer | 2022-03-25 12:40:25 -0400 | |
commit | ebbb7bb9e80305820dc2328a371c1b35679f2667 (patch) | |
tree | 0f793acb076ecbc42122c312b233b7cb3f936f3a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amdgpu/vcn: improve vcn dpg stop procedure (diff) | |
download | wireguard-linux-ebbb7bb9e80305820dc2328a371c1b35679f2667.tar.xz wireguard-linux-ebbb7bb9e80305820dc2328a371c1b35679f2667.zip |
drm/amdkfd: Check for potential null return of kmalloc_array()
As the kmalloc_array() may return null, the 'event_waiters[i].wait' would lead to null-pointer dereference.
Therefore, it is better to check the return value of kmalloc_array() to avoid this confusion.
Signed-off-by: QintaoShen <unSimple1993@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions