mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Frank.Li@oss.nxp.com
To: linux-kernel@vger.kernel.org, Pankaj Gupta <pankaj.gupta@nxp.com>
Cc: Frank Li <Frank.Li@nxp.com>,
	imx@lists.linux.dev, frank.li@nxp.com,
	Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH -next] firmware: imx: Add missing return in error path to prevent use-after-free.
Date: Mon,  1 Jun 2026 17:20:46 -0400	[thread overview]
Message-ID: <178034884303.626604.3292111398618136020.b4-ty@b4> (raw)
In-Reply-To: <20260528091446.3331006-1-pankaj.gupta@nxp.com>

From: Frank Li <Frank.Li@nxp.com>


On Thu, 28 May 2026 14:44:46 +0530, Pankaj Gupta wrote:
> After freeing dev_ctx and setting *new_dev_ctx to NULL, the function
> continues execution and dereferences dev_ctx, leading to a potential
> use-after-free. Return immediately to avoid accessing freed memory.
> 
> This appears to have been lost during merge of the original fix.
> 
> 
> [...]

Applied, thanks!

[1/1] firmware: imx: Add missing return in error path to prevent use-after-free.
      commit: 28599a13adb5db6b4fb63ce088766c456f8f562b

Best regards,
-- 
Frank Li <Frank.Li@nxp.com>

      parent reply	other threads:[~2026-06-01 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28  9:14 Pankaj Gupta
2026-05-28 10:01 ` Dan Carpenter
2026-06-01 21:20 ` Frank.Li [this message]

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=178034884303.626604.3292111398618136020.b4-ty@b4 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=error27@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pankaj.gupta@nxp.com \
    /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

all inboxes | Powered by JetHome®