btrfs-progs: don't access freed memory in btrfs_close_devices
authorDavid Sterba <dsterba@suse.com>
Mon, 3 Oct 2016 14:48:53 +0000 (16:48 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 5 Oct 2016 10:39:01 +0000 (12:39 +0200)
commitea0fd88b5a443947aab2162b59d06b3f6f6e1649
tree91579e583921e1bbece1f71b932e36cc1cc30c81
parent61d5425fd3a089c6ffbad62b145f1a06c21ff860
btrfs-progs: don't access freed memory in btrfs_close_devices

Caught by ASAN, as we don't access fs_devices directly, there's no null
deref but 0x30 is still wrong.

Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c