commit | 20b08e1a793d898f0f13040d5418ee0955f678cf | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Mon Dec 14 13:51:51 2015 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 14 14:27:40 2015 -0500 |
tree | 3e35b883fd2b52e4c93ca8b6e12e1bb88f4a646a | |
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>