]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit9b1536c490d572f2ed4af0a15bd5d6cf349a9db4
treede6ce47b0545fdee53eac2c3455117110a4ed397
parent9650388b5c56578fdccc79c57a8c82fb92b8e7f1
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