diff options
| author | Dan Carpenter <[email protected]> | 2019-02-11 18:32:10 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-02-25 13:13:41 +0000 |
| commit | 669e859b5ea7c6f4fce0149d3907c64e550c294b (patch) | |
| tree | 924066e3cd8358f345bebb385d037ff178cdd423 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | btrfs: ensure that a DUP or RAID1 block group has exactly two stripes (diff) | |
| download | kernel-669e859b5ea7c6f4fce0149d3907c64e550c294b.tar.gz kernel-669e859b5ea7c6f4fce0149d3907c64e550c294b.zip | |
btrfs: drop the lock on error in btrfs_dev_replace_cancel
We should drop the lock on this error path. This has been found by a
static tool.
The lock needs to be released, it's there to protect access to the
dev_replace members and is not supposed to be left locked. The value of
state that's being switched would need to be artifically changed to an
invalid value so the default: branch is taken.
Fixes: d189dd70e255 ("btrfs: fix use-after-free due to race between replace start and cancel")
CC: [email protected] # 5.0+
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
