]> 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)
commit9ee7fb48d00836246991a1745a88bd84b3a428df
treed2cb212bc2126117c32d451eb0b7a92d658f239a
parent87a4ce3b18073d8fe866bc662a8dfb8b6c1c18d7
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