From: Wang Shilong Date: Wed, 24 Jul 2013 02:29:05 +0000 (+0800) Subject: Btrfs: add sanity checks regarding to parsing mount options X-Git-Tag: v3.12-rc1~40^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c334e87f31783ca80b7ce265b25ba5489bfad1a;p=pandora-kernel.git Btrfs: add sanity checks regarding to parsing mount options I just notice the following commands succeed: mount -o thread_pool=-1 This is ridiculous, only positive thread_pool makes sense,this patch adds sanity checks for them, and also catches the error of ENOMEM if allocating memory fails. Signed-off-by: Wang Shilong Reviewed-by: Miao Xie Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed