Phonet: fix netlink address dump error handling
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 8 Sep 2009 23:59:51 +0000 (23:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Sep 2009 19:55:04 +0000 (12:55 -0700)
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pn_netlink.c

index f8b4cee434c232614665523ac4608cbed543f86b..d21fd357661022d7b451d26ad93f43301f12b2ac 100644 (file)
@@ -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;
                }
        }