diff options
author | 2021-01-15 13:09:11 +0000 | |
---|---|---|
committer | 2021-01-15 17:45:07 -0300 | |
commit | 85dd1dd6e27147efe68539ef52802a7fa579f6cf (patch) | |
tree | 02f29202280922cbaf0028d3f2287dd2a91b9dad /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | drm/amdgpu: Remove unused variable (diff) | |
download | linux-dev-85dd1dd6e27147efe68539ef52802a7fa579f6cf.tar.xz linux-dev-85dd1dd6e27147efe68539ef52802a7fa579f6cf.zip |
drm/vkms: Fix missing kmalloc allocation failure check
Currently the kmalloc allocation for config is not being null
checked and could potentially lead to a null pointer dereference.
Fix this by adding the missing null check.
Addresses-Coverity: ("Dereference null return value")
Fixes: 2df7af93fdad ("drm/vkms: Add vkms_config type")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210115130911.71073-1-colin.king@canonical.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions