[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1507816314-2896-1-git-send-email-mrv@mojatatu.com>
Date: Thu, 12 Oct 2017 09:51:54 -0400
From: Roman Mashak <mrv@...atatu.com>
To: davem@...emloft.net
Cc: stephen@...workplumber.org, dsahern@...il.com,
netdev@...r.kernel.org, Roman Mashak <mrv@...atatu.com>
Subject: [PATCH net-next v2 1/1] bridge: return error code when deleting Vlan
v2:
Return err immediately if nbp_vlan_delete() fails (pointed by David Ahern)
Signed-off-by: Roman Mashak <mrv@...atatu.com>
---
net/bridge/br_netlink.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index f0e8268..1efdd48 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -527,11 +527,13 @@ static int br_vlan_info(struct net_bridge *br, struct net_bridge_port *p,
case RTM_DELLINK:
if (p) {
- nbp_vlan_delete(p, vinfo->vid);
+ err = nbp_vlan_delete(p, vinfo->vid);
+ if (err)
+ break;
if (vinfo->flags & BRIDGE_VLAN_INFO_MASTER)
- br_vlan_delete(p->br, vinfo->vid);
+ err = br_vlan_delete(p->br, vinfo->vid);
} else {
- br_vlan_delete(br, vinfo->vid);
+ err = br_vlan_delete(br, vinfo->vid);
}
break;
}
--
1.9.1
Powered by blists - more mailing lists