diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-11-06 17:15:52 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-07 16:10:41 -0500 |
commit | e11712a146c8a16c697a60ead980a9da68eaaddf (patch) | |
tree | 5d79ea59c678e93fc7ce3fb472a3de3fb3e0229e /cmds-filesystem.c | |
parent | 18800f4a318704bb62039b6d2af50ee9bb077138 (diff) |
btrfs-progs: check btrfs_scan_one_device in btrfs_scan_lblkid()
Even if it's "definitely" btrfs at this point,
btrfs_scan_one_device could fail for other reasons.
Check the return value, warn if it fails, and skip
the device register.
Resolves-Coverity-CID: 1125925
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-filesystem.c')
0 files changed, 0 insertions, 0 deletions