aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorAmmar Faizi <[email protected]>2022-08-01 18:59:56 +0700
committerJakub Kicinski <[email protected]>2022-08-01 12:47:10 -0700
commit80ef928643c1558a0474389fcd680a5ccd6c86e6 (patch)
tree0878d6785164668d3a5db1fa05d1aa0efed505f9 /scripts/gdb/linux/proc.py
parentd81c7cdd7a6ddffcc8c00c991e3d6e24db84bd9e (diff)
net: devlink: Fix missing mutex_unlock() call
Commit 2dec18ad826f forgets to call mutex_unlock() before the function returns in the error path: New smatch warnings: net/core/devlink.c:6392 devlink_nl_cmd_region_new() warn: inconsistent \ returns '&region->snapshot_lock'. Make sure we call mutex_unlock() in this error path. Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Fixes: 2dec18ad826f ("net: devlink: remove region snapshots list dependency on devlink->lock") Signed-off-by: Ammar Faizi <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions