Btrfs-progs: seg fault in get_label_unmounted
authorAnand Jain <anand.jain@oracle.com>
Wed, 15 Aug 2012 08:29:53 +0000 (16:29 +0800)
committerroot <root@localhost.localdomain>
Thu, 4 Oct 2012 20:26:32 +0000 (16:26 -0400)
commitf4dfc8f6edb62c0a73b6334fc04ac399a289c449
treeccb5d7a2fcb885d5b839fff5a0baeb88da306644
parent8a25bb834b218068dec79983fdfc76ef4f8e605f
Btrfs-progs: seg fault in get_label_unmounted

btrfs f l /
No valid Btrfs found on /
Segmentation fault (core dumped)

open_ctree can return NULL, we need to check that.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
btrfslabel.c