diff options
author | Huy Nguyen <huyn@mellanox.com> | 2020-02-03 16:32:18 -0600 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-02-18 19:01:18 -0800 |
commit | 3d9c5e023a0dbf3e117bb416cfefd9405bf5af0c (patch) | |
tree | d02be52c9d879380ff29bafc9944c788083592ce /drivers/slimbus/qcom-ngd-ctrl.c | |
parent | 9facfdb5467382a21fc0bd4211ced26c06f28832 (diff) |
net/mlx5: Fix sleep while atomic in mlx5_eswitch_get_vepa
rtnl_bridge_getlink is protected by rcu lock, so mlx5_eswitch_get_vepa
cannot take mutex lock. Two possible issues can happen:
1. User at the same time change vepa mode via RTM_SETLINK command.
2. User at the same time change the switchdev mode via devlink netlink
interface.
Case 1 cannot happen because rtnl executes one message in order.
Case 2 can happen but we do not expect user to change the switchdev mode
when changing vepa. Even if a user does it, so he will read a value
which is no longer valid.
Fixes: 8da202b24913 ("net/mlx5: E-Switch, Add support for VEPA in legacy mode.")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/slimbus/qcom-ngd-ctrl.c')
0 files changed, 0 insertions, 0 deletions