mdio-sun4i: oops in error handling in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Mar 2016 09:02:31 +0000 (12:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Mar 2016 15:30:01 +0000 (11:30 -0400)
commit227f33beab746aeec4ef3305bd17b1d374df09e7
tree41f1b2a258a2b98ff9ad5f34ba5dca9e28867cbd
parentabc34d753ee013a62595c2f7e9260e173dd083c6
mdio-sun4i: oops in error handling in probe

We could end up dereferencing an error pointer when we call
regulator_disable().

Fixes: 4bdcb1dd9feb ('net: Add MDIO bus driver for the Allwinner EMAC')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-sun4i.c