From: Stephen Hemminger Date: Thu, 3 Aug 2006 23:24:02 +0000 (-0700) Subject: [BRIDGE]: netlink status fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bea1b42e1bb184cb75e6bbd95c83e4478dde4ab9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [BRIDGE]: netlink status fix Fix code that passes back netlink status messages about bridge changes. Submitted by Aji_Srinivas@emc.com Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 06abb6634f5b..53086fb75089 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -85,7 +85,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port) goto err_out; err = br_fill_ifinfo(skb, port, current->pid, 0, event, 0); - if (err) + if (err < 0) goto err_kfree; NETLINK_CB(skb).dst_group = RTNLGRP_LINK;