From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: rcz@pengutronix.de, ske@pengutronix.de
Subject: Re: [PATCH] mdio_bus: add NULL check to mdiobus_read/mdiobus_write
Date: Mon, 14 Oct 2024 13:13:15 +0200 [thread overview]
Message-ID: <172890439527.3731983.4132757642503377309.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20241014085506.2207866-1-a.fatoum@pengutronix.de>
On Mon, 14 Oct 2024 10:55:06 +0200, Ahmad Fatoum wrote:
> These functions shouldn't be called with a NULL pointer as argument in
> the first place, but this happened at least twice so far[1][2], because
> drivers weren't tested in fixed-link setups without PHYs.
>
> To improve user experience, let's return -EIO instead of crashing
> outright. The proper fix is still to adapt these drivers, so they
> do not try to access non-existent PHYs.
>
> [...]
Applied, thanks!
[1/1] mdio_bus: add NULL check to mdiobus_read/mdiobus_write
https://git.pengutronix.de/cgit/barebox/commit/?id=36d1dd4afe57 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2024-10-14 12:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 8:55 Ahmad Fatoum
2024-10-14 9:24 ` Stefan Kerkmann
2024-10-14 11:13 ` Sascha Hauer [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=172890439527.3731983.4132757642503377309.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=rcz@pengutronix.de \
--cc=ske@pengutronix.de \
/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