diff options
| author | Tom Rix <[email protected]> | 2022-01-21 13:45:22 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-01-31 15:06:21 +0000 |
| commit | 37b4599547e324589e011c20f74b021d6d25cb7f (patch) | |
| tree | 1f5d1e24dce5c05e261d24ae27f8228b30104103 /lib/string_helpers.c | |
| parent | btrfs: fix use-after-free after failure to create a snapshot (diff) | |
| download | kernel-37b4599547e324589e011c20f74b021d6d25cb7f.tar.gz kernel-37b4599547e324589e011c20f74b021d6d25cb7f.zip | |
btrfs: fix use of uninitialized variable at rm device ioctl
Clang static analysis reports this problem
ioctl.c:3333:8: warning: 3rd function call argument is an
uninitialized value
ret = exclop_start_or_cancel_reloc(fs_info,
cancel is only set in one branch of an if-check and is always used. So
initialize to false.
Fixes: 1a15eb724aae ("btrfs: use btrfs_get_dev_args_from_path in dev removal ioctls")
Reviewed-by: Filipe Manana <[email protected]>
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
