diff options
author | Tobias Klauser | 2015-12-14 13:51:51 +0100 |
---|---|---|
committer | David S. Miller | 2015-12-14 14:27:40 -0500 |
commit | 20b08e1a793d898f0f13040d5418ee0955f678cf (patch) | |
tree | 3e35b883fd2b52e4c93ca8b6e12e1bb88f4a646a /include | |
parent | e5f5d74747afa799bff109644be04b00af36043e (diff) |
net: phy: mdio-mux: Check return value of mdiobus_alloc()
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions