]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fec: Invert the order of error path sequence
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 27 May 2013 03:48:30 +0000 (03:48 +0000)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:19 +0000 (09:54 +0800)
commited49650f602eed3a268e1f2cab1b334c6670be40
treebbb73de231e6bf46e152700336d83e7e3bc7e044
parent19b7cc4b6f51dc0d1adb68020f03b1c950524f1e
fec: Invert the order of error path sequence

Currently when fec_enet_init fails it jumps to 'failed_init' error path, which
will attemp to free the interrupts.

This is wrong because at this point the interrupts have not even been acquired.

Swap failed_init/failed_irq to fix the error path.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c