mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
dpaa2-switch: fix VLAN upper check not rejecting bridge join
The blamed commit refactored the prechangeupper event handling but
failed to actually return an error in case
dpaa2_switch_prevent_bridging_with_8021q_upper() detected a 802.1q upper
on a port which tries to join a bridge. Fix this by returning err
instead of 0.
Fixes: 45035febc4 ("net: dpaa2-switch: refactor prechangeupper sanity checks")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://patch.msgid.link/20260616105430.3725910-1-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9e5ad06ea8
commit
ed2294f94e
|
|
@ -2212,7 +2212,7 @@ dpaa2_switch_prechangeupper_sanity_checks(struct net_device *netdev,
|
|||
if (err) {
|
||||
NL_SET_ERR_MSG_MOD(extack,
|
||||
"Cannot join a bridge while VLAN uppers are present");
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
netdev_for_each_lower_dev(upper_dev, other_dev, iter) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user