]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: fix netconsole setup over bridge
authorCong Wang <cwang@twopensource.com>
Thu, 6 Feb 2014 23:00:52 +0000 (15:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2014 05:28:06 +0000 (21:28 -0800)
commitf9f082570f0e6588b4f1de38443b6d44a421e911
tree99e3267bb0bf26cbcadc15dae0431d29f1a2f765
parent930b08026215b508eb7cdff568a670c1c8239701
bridge: fix netconsole setup over bridge

Commit 2043d028544b ("bridge: cleanup netpoll code") introduced
a check in br_netpoll_enable(), but this check is incorrect for
br_netpoll_setup(). This patch moves the code after the check
into __br_netpoll_enable() and calls it in br_netpoll_setup().
For br_add_if(), the check is still needed.

Fixes: 2043d028544b ("bridge: cleanup netpoll code")
Cc: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Tested-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c