aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/intel_pstate
diff options
context:
space:
mode:
authorDan Carpenter2019-02-11 21:32:10 +0300
committerDavid Sterba2019-02-25 14:13:41 +0100
commit669e859b5ea7c6f4fce0149d3907c64e550c294b (patch)
tree924066e3cd8358f345bebb385d037ff178cdd423 /tools/testing/selftests/intel_pstate
parent349ae63f40638a28c6fce52e8447c2d14b84cc0c (diff)
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: stable@vger.kernel.org # 5.0+ Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/testing/selftests/intel_pstate')
0 files changed, 0 insertions, 0 deletions