diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-11-30 16:37:34 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-01 14:36:03 -0500 |
commit | 2934c9dbd385c6be08a1f4a33820d132979d61a7 (patch) | |
tree | c1763a0571fce01b042b6bb98a497bcb6ce404ab /net | |
parent | 60602982720f3a77366ee3e493a6e3d15e7e84f5 (diff) | |
download | op-kernel-dev-2934c9dbd385c6be08a1f4a33820d132979d61a7.zip op-kernel-dev-2934c9dbd385c6be08a1f4a33820d132979d61a7.tar.gz |
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 <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |