From: Greg KH <gregkh@linuxfoundation.org>
To: Haoxiang Li <haoxiang_li2024@163.com>
Cc: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com,
linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev
Subject: Re: [PATCH] staging: sm750fb: Unmap PCI resources on framebuffer probe failure
Date: Wed, 2 Dec 2026 08:39:28 +0100 [thread overview]
Message-ID: <2026120206-chamomile-hardcover-db75@gregkh> (raw)
In-Reply-To: <20261202033712.3970503-1-haoxiang_li2024@163.com>
On Wed, Dec 02, 2026 at 11:37:12AM +0800, Haoxiang Li wrote:
> hw_sm750_map() allocates the PCI region and maps both the
> registers and video memory, but not freed on probe failure,
> causing a potential leak. Add a unmap helper and call it
> on probe failure. Also call arch_phys_wc_del() as done in
> lynxfb_pci_remove() and change the error label.
>
> Fixes: 81dee67e215b ("staging: sm750fb: add sm750 to staging")
> Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
How was this found and tested?
And why are you doing multiple things in the same patch?
thanks,
greg k-h
next prev parent reply other threads:[~2026-12-02 7:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 3:37 [PATCH] staging: sm750fb: Unmap PCI resources on framebuffer probe failure Haoxiang Li
2026-12-02 7:39 ` Greg KH [this message]
2026-12-02 7:58 ` Haoxiang Li
2026-12-02 8:01 ` Greg KH
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=2026120206-chamomile-hardcover-db75@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=haoxiang_li2024@163.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=sudipm.mukherjee@gmail.com \
--cc=teddy.wang@siliconmotion.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.