Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] drm/xe: Add NULL check before deferencing pointer
@ 2024-08-20  8:54 apoorva.singh
  2024-08-20  8:54 ` [PATCH 1/1] drm/xe: Add NULL check before dereferencing pointer lrc->bo in xe_lrc_snapshot_capture() apoorva.singh
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: apoorva.singh @ 2024-08-20  8:54 UTC (permalink / raw)
  To: intel-xe; +Cc: Apoorva Singh

From: Apoorva Singh <apoorva.singh@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@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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-20 15:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20  8:54 [PATCH 0/1] drm/xe: Add NULL check before deferencing pointer apoorva.singh
2024-08-20  8:54 ` [PATCH 1/1] drm/xe: Add NULL check before dereferencing pointer lrc->bo in xe_lrc_snapshot_capture() apoorva.singh
2024-08-20  9:38 ` ✓ CI.Patch_applied: success for drm/xe: Add NULL check before deferencing pointer (rev3) Patchwork
2024-08-20  9:38 ` ✓ CI.checkpatch: " Patchwork
2024-08-20  9:39 ` ✓ CI.KUnit: " Patchwork
2024-08-20  9:52 ` ✓ CI.Build: " Patchwork
2024-08-20  9:56 ` ✓ CI.Hooks: " Patchwork
2024-08-20  9:58 ` ✓ CI.checksparse: " Patchwork
2024-08-20 10:18 ` ✓ CI.BAT: " Patchwork
2024-08-20 15:11 ` ✗ CI.FULL: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox