linux-stable/drivers/accel/qaic
Jeffrey Hugo 61d8cdb787 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: c501ca23a6 ("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
2023-06-09 11:07:28 -06:00
..
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile Revert "accel/qaic: Add mhi_qaic_cntl" 2023-04-13 12:08:08 +02:00
mhi_controller.c
mhi_controller.h
qaic.h
qaic_control.c accel/qaic: Fix NNC message corruption 2023-05-23 09:51:38 -06:00
qaic_data.c accel/qaic: Grab ch_lock during QAIC_ATTACH_SLICE_BO 2023-05-23 09:51:06 -06:00
qaic_drv.c accel/qaic: Fix NULL pointer deref in qaic_destroy_drm_device() 2023-06-09 11:07:28 -06:00