netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: tklauser@distanz.ch
Cc: f.fainelli@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH] net: phy: mdio-mux: Check return value of mdiobus_alloc()
Date: Mon, 14 Dec 2015 14:30:47 -0500 (EST)	[thread overview]
Message-ID: <20151214.143047.997678276798238332.davem@davemloft.net> (raw)
In-Reply-To: <1450097511-13010-1-git-send-email-tklauser@distanz.ch>

From: Tobias Klauser <tklauser@distanz.ch>
Date: Mon, 14 Dec 2015 13:51:51 +0100

> mdiobus_alloc() might return NULL, but its return value is not
> checked in mdio_mux_init(). This could potentially lead to a NULL
> pointer dereference. Fix it by checking the return value
> 
> Fixes: 0ca2997d1452 ("netdev/of/phy: Add MDIO bus multiplexer support.")
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Applied, thanks Tobias.

      reply	other threads:[~2015-12-14 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-14 12:51 [PATCH] net: phy: mdio-mux: Check return value of mdiobus_alloc() Tobias Klauser
2015-12-14 19:30 ` David Miller [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=20151214.143047.997678276798238332.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=tklauser@distanz.ch \
    /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;
as well as URLs for NNTP newsgroup(s).