Skip to contentSkip to conversation

Phonet: fix netlink address dump error handling

PATCH Applied Rémi Denis-Courmont 2 participants 2 messages Sep 9, 2009 – Sep 11, 2009

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

PATCH 1/1 Phonet: fix netlink address dump error handling

From: Rémi Denis-Courmont <[email protected]>

---
 net/phonet/pn_netlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/phonet/pn_netlink.c +1 -1
index f8b4cee..d21fd35 100644
@@ -147,7 +147,7 @@ static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb)
 
 			if (fill_addr(skb, pnd->netdev, addr << 2,
 					 NETLINK_CB(cb->skb).pid,
-					cb->nlh->nlmsg_seq, RTM_NEWADDR))
+					cb->nlh->nlmsg_seq, RTM_NEWADDR) < 0)
 				goto out;
 		}
 	}
Signature · 1 line
1.6.0.4