Tom Rix 37b4599547 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 <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-01-31 16:06:21 +01:00
..
2021-09-02 09:21:27 -07:00
2022-01-07 14:18:26 +01:00
2022-01-07 14:18:26 +01:00
2022-01-07 14:18:23 +01:00
2021-06-22 14:11:57 +02:00
2019-11-18 23:43:44 +01:00
2021-06-22 14:11:57 +02:00
2021-11-26 11:24:32 -08:00
2022-01-07 14:18:26 +01:00
2022-01-07 14:18:23 +01:00
2021-10-29 12:38:43 +02:00
2022-01-07 14:18:26 +01:00
2022-01-07 14:18:26 +01:00
2022-01-07 14:18:26 +01:00
2021-11-08 16:55:21 -08:00