summaryrefslogtreecommitdiff
path: root/lib/libcrc32c.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2013-07-24 02:29:05 (GMT)
committerChris Mason <chris.mason@fusionio.com>2013-09-01 12:04:28 (GMT)
commit2c334e87f31783ca80b7ce265b25ba5489bfad1a (patch)
tree42f7ab57507b523ef3adb9a553a4612efa069673 /lib/libcrc32c.c
parent3cd846d1d7640dd6b64d251cb9efd1a490d9a601 (diff)
downloadlinux-2c334e87f31783ca80b7ce265b25ba5489bfad1a.tar.xz
Btrfs: add sanity checks regarding to parsing mount options
I just notice the following commands succeed: mount <dev> <mnt> -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 <wangsl.fnst@cn.fujitsu.com> Reviewed-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'lib/libcrc32c.c')
0 files changed, 0 insertions, 0 deletions