From: Zhang Shengju Date: Wed, 30 Nov 2016 08:37:34 +0000 (+0800) Subject: rtnetlink: return the correct error code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2934c9dbd385c6be08a1f4a33820d132979d61a7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index bd85570e6e4b..4cb84f0449a8 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;