OSDN Git Service

3c59x: Fix resource leaks in vortex_open
authorJia-Ju Bai <baijiaju1990@163.com>
Mon, 3 Aug 2015 03:18:12 +0000 (11:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2015 22:21:33 +0000 (15:21 -0700)
commit2fc09962e24ace45154d0c16024f1eb15700f3e8
treec189b27bf8d5d5da2e43a84f79701595376548f7
parent468b732b6f76b138c0926eadf38ac88467dcd271
3c59x: Fix resource leaks in vortex_open

When vortex_up is failed, the skb buffers allocated by __netdev_alloc_skb
in vortex_open are not released, which may cause resource leaks.
This bug has been submitted before.
This patch modifies the error handling code to fix it.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c