mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Haoxiang Li <haoxiang_li2024@163.com>
Cc: olivia@selenic.com, kees+treewide@kernel.org,
	sgoutham@marvell.com, linux-crypto@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hwrng: cavium - Fix PF register mapping leak on probe failure
Date: Fri, 27 Nov 2026 13:12:10 +0800	[thread overview]
Message-ID: <awkRKl_xdES-SUKI@gondor.apana.org.au> (raw)
In-Reply-To: <20261117133844.1410587-1-haoxiang_li2024@163.com>

On Tue, Nov 17, 2026 at 09:38:44PM +0800, Haoxiang Li wrote:
> cavium_map_pf_regs() maps the PF registers with ioremap(), but the
> mapping is not released if devm_hwrng_register() fails. Call iounmap()
> before returning the registration error.
> 
> Fixes: 680efb33546b ("hwrng: cavium - Check health status while reading random data")
> Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
> ---
>  drivers/char/hw_random/cavium-rng-vf.c | 1 +
>  1 file changed, 1 insertion(+)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

      reply	other threads:[~2026-11-27  5:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 13:38 Haoxiang Li
2026-11-27  5:12 ` Herbert Xu [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=awkRKl_xdES-SUKI@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=haoxiang_li2024@163.com \
    --cc=kees+treewide@kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olivia@selenic.com \
    --cc=sgoutham@marvell.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®