Btrfs-progs: fix arguments check of qgroup limit
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 12 Sep 2012 04:30:19 +0000 (13:30 +0900)
committerDavid Sterba <dsterba@suse.cz>
Tue, 2 Oct 2012 11:02:51 +0000 (13:02 +0200)
commitd88f33152f3d69240b6c690188b5d832a1663c07
treecafb3dee9ebdd2c86da90358207f5ea00fa20b74
parent605e806166847872bb91831b397d58f95027975a
Btrfs-progs: fix arguments check of qgroup limit

Segmentation fault occurred in the following command.

 # btrfs qgroup limit
 Segmentation fault

So, we should check a minimum number of arguments.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
cmds-qgroup.c