]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: avoid br_ifinfo_notify when nothing changed
authorHong zhi guo <honkiko@gmail.com>
Sun, 24 Mar 2013 03:26:47 +0000 (03:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2013 21:16:30 +0000 (17:16 -0400)
commit3c5c1d70845ac7c1bad17a047fc8fd45e637e2e9
tree266b13a857c2d2c62566e30db838954bedd3c01c
parent5ece5786c868035213df4deab7bd7cd11b20b17f
bridge: avoid br_ifinfo_notify when nothing changed

When neither IFF_BRIDGE nor IFF_BRIDGE_PORT is set,
and afspec == NULL but  protinfo != NULL, we run into
"if (err == 0) br_ifinfo_notify(RTM_NEWLINK, p);" with
random value in ret.

Thanks to Sergei for pointing out the error in commit comments.

Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c