From 2934c9dbd385c6be08a1f4a33820d132979d61a7 Mon Sep 17 00:00:00 2001 From: Zhang Shengju Date: Wed, 30 Nov 2016 16:37:34 +0800 Subject: rtnetlink: return the correct error code Before this patch, function ndo_dflt_fdb_dump() will always return code from uc fdb dump. The reture code of mc fdb dump is lost. Signed-off-by: Zhang Shengju Signed-off-by: David S. Miller --- net/core/rtnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index bd85570..4cb84f0 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3177,7 +3177,7 @@ int ndo_dflt_fdb_dump(struct sk_buff *skb, err = nlmsg_populate_fdb(skb, cb, dev, idx, &dev->uc); if (err) goto out; - nlmsg_populate_fdb(skb, cb, dev, idx, &dev->mc); + err = nlmsg_populate_fdb(skb, cb, dev, idx, &dev->mc); out: netif_addr_unlock_bh(dev); return err; -- cgit v1.1