]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: call br_netpoll_disable in br_add_if
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 19 Dec 2012 23:41:43 +0000 (23:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2012 21:17:07 +0000 (13:17 -0800)
commit90719de236afaf82baeedef5a3f14fd84895af70
treede6ce47b0545fdee53eac2c3455117110a4ed397
parent1dd851f41c73d833edbba1a4024c18b76696435d
bridge: call br_netpoll_disable in br_add_if

When netdev_set_master faild in br_add_if, we should
call br_netpoll_disable to do some cleanup jobs,such
as free the memory of struct netpoll which allocated
in br_netpoll_enable.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c