aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/device.py
diff options
context:
space:
mode:
authorDmytro Linkin <[email protected]>2021-06-23 16:43:15 +0300
committerDavid S. Miller <[email protected]>2021-06-23 15:46:25 -0700
commita3e5e5797faad0db319d106afaa31b9020fac44f (patch)
tree97d736059ad5dd500ad2c0ab91f99b30c5355243 /scripts/gdb/linux/device.py
parentff99324ded0176d28c3d8de7cac44580cf79d52a (diff)
devlink: Protect rate list with lock while switching modes
Devlink eswitch set command doesn't hold devlink->lock, which makes possible race condition between rate list traversing and others devlink rate KAPI calls, like devlink_rate_nodes_destroy(). Hold devlink lock while traversing the list. Fixes: a8ecb93ef03d ("devlink: Introduce rate nodes") Signed-off-by: Dmytro Linkin <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions