net: arc_emac: fix sk_buff leak
authorAlexander Kochetkov <al.kochet@gmail.com>
Tue, 9 Feb 2016 15:20:40 +0000 (18:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:26:30 +0000 (15:26 -0500)
commitb530b16413b7f99977ded50a3c4bebd2ea79c41b
tree575e01bbdec3f48308b249f2bfcbb745b56ad06f
parent99f93a156a2aa9ac1e44f7cb1a197425e6d9879a
net: arc_emac: fix sk_buff leak

EMAC could be disabled, while there is some sb_buff
in use. That buffers got lost for linux.

In order to reproduce run on device during active ethernet work:
    ifconfig eth0 down

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c