net: cpsw: ignore error on slave setup
The CPSW has two slaves. When one of them fails to setup continue
anyway with the other one. This fixes a crash in the beaglebone black
which only has one slave connected. The code doesn't find a phy on
the second slave and bails out, but the error path is broken: It frees
the private data structures which contains used resources.

Reported-by: Philippe Leduc <ledphilippe@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fec4b79 commit b2568de82d62c18fd5dc8affb0e4dc050403c498
@Sascha Hauer Sascha Hauer authored on 6 Jan 2015
Showing 1 changed file
View
drivers/net/cpsw.c