[PATCH 0/1] drm/xe: Add NULL check before deferencing pointer

apoorva.singh at intel.com apoorva.singh at intel.com
Tue Aug 20 08:54:53 UTC 2024


From: Apoorva Singh <apoorva.singh at intel.com>

Add NULL check before deferencing of lrc->bo in
xe_lrc_snapshot_capture().

Free the dynamically allocated memory for snapshot
to avoid memory leak.

Signed-off-by: Apoorva Singh <apoorva.singh at intel.com>


Apoorva Singh (1):
  drm/xe: Add NULL check before dereferencing pointer lrc->bo in
    xe_lrc_snapshot_capture()

 drivers/gpu/drm/xe/xe_lrc.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-- 
2.34.1



More information about the Intel-xe mailing list