Skip to contentSkip to conversation

bridge: netlink status fix

PATCH Applied Stephen Hemminger 2 participants 2 messages Aug 2, 2006 – Aug 3, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bridge: netlink status fix

Fix code that passes back netlink status messages about bridge changes. Submitted by [email protected]

---
 net/bridge/br_netlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/bridge/br_netlink.c +1 -1
index 06abb66..53086fb 100644
@@ -85,7 +85,7 @@ void br_ifinfo_notify(int event, struct 
 		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;
Signature · 4 lines
1.4.0


--