diff options
author | Jeffrey Hugo <quic_jhugo@quicinc.com> | 2023-06-03 00:04:40 +0300 |
---|---|---|
committer | Jeffrey Hugo <quic_jhugo@quicinc.com> | 2023-06-09 20:07:28 +0300 |
commit | 61d8cdb7872c82d8a4d5e5251b0010332c316a67 (patch) | |
tree | 06132e7670ab11f7d8e8bade7eb172789eb388e1 /scripts/gdb/linux/utils.py | |
parent | 3e1b9b2d81901b3ceeb5ec1f1b4c41cd1cff53ba (diff) | |
download | linux-61d8cdb7872c82d8a4d5e5251b0010332c316a67.tar.xz |
accel/qaic: Fix NULL pointer deref in qaic_destroy_drm_device()
If qaic_destroy_drm_device() is called before the device has fully
initialized it will cause a NULL pointer dereference as the drm device
has not yet been created. Fix this with a NULL check.
Fixes: c501ca23a6a3 ("accel/qaic: Add uapi and core driver file")
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230602210440.8411-3-quic_jhugo@quicinc.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions