]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: add missing free_netdev() on error in macb_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Fri, 12 Aug 2016 15:43:54 +0000 (15:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 04:23:42 +0000 (21:23 -0700)
commit9e60944b59e6fe5cfbde73d29f4e6512860f1169
tree90388a04cfc7b09170afd823a7912c0c0dc22111
parente14aa1d6130b89028610e5aa89d8ed0866edd869
net: macb: add missing free_netdev() on error in macb_probe()

Add the missing free_netdev() before return from function macb_probe()
in the platform_get_irq() error handling case.

Fixes: d528f785e531 ("net/macb: fix probe sequence to setup clocks earlier")
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c