Btrfs: fix btrfs_ioctl_dev_info() crash on missing device
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 19 Mar 2012 15:17:22 +0000 (16:17 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 18 Apr 2012 17:22:35 +0000 (19:22 +0200)
commit99ba55ad696944b37d5557bc5b4816890854fdb9
tree2c8bf9a167f351b89ef86e2133ffec7dfb5d1ce7
parentb9688bb8459b67e42327de6420edb405a9188775
Btrfs: fix btrfs_ioctl_dev_info() crash on missing device

When a filesystem is mounted with the degraded option, it is
possible that some of the devices are not there.
btrfs_ioctl_dev_info() crashs in this case because the device
name is a NULL pointer. This ioctl was only used for scrub.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
fs/btrfs/ioctl.c