]> Git Repo - linux.git/commit
btrfs: add missing mutex_unlock in btrfs_relocate_sys_chunks()
authorDominique Martinet <[email protected]>
Fri, 19 Apr 2024 02:22:48 +0000 (11:22 +0900)
committerDavid Sterba <[email protected]>
Thu, 25 Apr 2024 14:23:01 +0000 (16:23 +0200)
commit9af503d91298c3f2945e73703f0e00995be08c30
tree2ac2b82794490a3f8393cb5180a7b6e962b0b566
parentfe1c6c7acce10baf9521d6dccc17268d91ee2305
btrfs: add missing mutex_unlock in btrfs_relocate_sys_chunks()

The previous patch that replaced BUG_ON by error handling forgot to
unlock the mutex in the error path.

Link: https://lore.kernel.org/all/Zh%[email protected]
Reported-by: Pavel Machek <[email protected]>
Fixes: 7411055db5ce ("btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()")
CC: [email protected]
Reviewed-by: Pavel Machek <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/volumes.c
This page took 0.056069 seconds and 4 git commands to generate.