From: Helge Deller <deller@gmx.de>
To: yuebingkun <yuebingkun@kylinos.cn>
Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] fbdev: platinumfb: add error checking for ioremap calls
Date: Tue, 18 Aug 2026 11:03:07 +0200 [thread overview]
Message-ID: <5164081e-2eaf-498e-a320-c26c50b6f9e2@gmx.de> (raw)
In-Reply-To: <20260817063942.308926-1-yuebingkun@kylinos.cn>
On 8/17/26 08:39, yuebingkun wrote:
> The ioremap() and ioremap_wt() calls in platinumfb_probe() were not
> checked for failure. If any of these mappings fail, the driver would
> dereference NULL pointers, leading to a kernel panic.
>
> Add proper error checking and use goto-based cleanup to avoid code
> duplication across the error paths.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
That Fixes line ^^^ has no value, so I dropped it.
> Signed-off-by: yuebingkun <yuebingkun@kylinos.cn>
Would be nice to have your Name written out here, e.g. Yue Bing Kun (or something),
but I've left it as-is for now. In case you resend with full name, I can replace it
in the git tree.
> drivers/video/fbdev/platinumfb.c | 36 ++++++++++++++++++++++++++------
> 1 file changed, 30 insertions(+), 6 deletions(-)
Patch applied (with the Fixes line dropped).
Thanks!
Helge
prev parent reply other threads:[~2026-08-18 9:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-17 6:39 [PATCH v2] fbdev: platinumfb: add error checking for ioremap calls yuebingkun
2026-08-17 7:00 ` Markus Elfring
2026-08-18 9:03 ` Helge Deller [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=5164081e-2eaf-498e-a320-c26c50b6f9e2@gmx.de \
--to=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yuebingkun@kylinos.cn \
/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