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)
commitc38e01b8b958cb6606bcc156d3d00c3ee99a13f8
treed2cb212bc2126117c32d451eb0b7a92d658f239a
parent26cdfb4915a9a408f4c1f04111999a11eb0ee606
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