]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix bridge notify hook to manage flags correctly
authorJohn Fastabend <john.r.fastabend@intel.com>
Fri, 2 Nov 2012 16:32:36 +0000 (16:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 19:37:36 +0000 (15:37 -0400)
commit9f1ee0352492f6ccc72e8869e9c68f74de5b2745
treed2cb212bc2126117c32d451eb0b7a92d658f239a
parentf338fbb48a1c1df871ec8a2fc49d18cc515782ea
net: fix bridge notify hook to manage flags correctly

The bridge notify hook rtnl_bridge_notify() was not handling the
case where the master flags was set or with both flags set. First
flags are not being passed correctly and second the logic to parse
them is broken.

This patch passes the original flags value and fixes the
logic.

Reported-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c