]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: dsa: remove phy_disconnect from error path
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 11 Feb 2016 10:44:49 +0000 (11:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 21:04:08 +0000 (16:04 -0500)
commita407054f830ca9a28febdeeeaa34d2ed420b9ed3
tree055d5145152317b4325da388de12fc2c1685e171
parentbd16a7248042dc62285fdc5598ec4888c0865819
net: dsa: remove phy_disconnect from error path

The phy has not been initialized, disconnecting it in the error
path results in a NULL pointer exception. Drop the phy_disconnect
from the error path.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c