X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fudp_diag.c;h=1ed8c4d78e5cac3e447cf666a1dc28a25c114f11;hb=d842bc6c0579ca7643eed029beabab3ac562a335;hp=b2cee9a307d4c2a5eec7e220b3ffb827a9ce3dcf;hpb=3cfade53c77315d018c50ea1ee3420cef1c50fe7;p=linux-2.6-microblaze.git diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c index b2cee9a307d4..1ed8c4d78e5c 100644 --- a/net/ipv4/udp_diag.c +++ b/net/ipv4/udp_diag.c @@ -77,10 +77,8 @@ static int udp_dump_one(struct udp_table *tbl, kfree_skb(rep); goto out; } - err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, - MSG_DONTWAIT); - if (err > 0) - err = 0; + err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); + out: if (sk) sock_put(sk);