Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: apoorva.singh@intel.com
To: intel-xe@lists.freedesktop.org
Cc: Apoorva Singh <apoorva.singh@intel.com>
Subject: [PATCH 0/1] drm/xe: Add NULL check before deferencing pointer
Date: Tue, 20 Aug 2024 14:24:53 +0530	[thread overview]
Message-ID: <20240820085454.976636-1-apoorva.singh@intel.com> (raw)

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


             reply	other threads:[~2024-08-20  8:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-20  8:54 apoorva.singh [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240820085454.976636-1-apoorva.singh@intel.com \
    --to=apoorva.singh@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox