summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2010-02-16 01:17:55 (GMT)
committerTheodore Ts'o <tytso@mit.edu>2010-02-16 01:17:55 (GMT)
commit15121c18a22ae483279f76dc9e554334b800d0f7 (patch)
tree50861d9444cd21945a6086fa03c2bdd1a7f8c354 /fs/ext4/ext4.h
parenta1de02dccf906faba2ee2d99cac56799bda3b96a (diff)
downloadlinux-fsl-qoriq-15121c18a22ae483279f76dc9e554334b800d0f7.tar.xz
ext4: Fix optional-arg mount options
We have 2 mount options, "barrier" and "auto_da_alloc" which may or may not take a 1/0 argument. This causes the ext4 superblock mount code to subtract uninitialized pointers and pass the result to kmalloc, which results in very noisy failures. Per Ted's suggestion, initialize the args struct so that we know whether match_token() found an argument for the option, and skip match_int() if not. Also, return error (0) from parse_options if we thought we found an argument, but match_int() Fails. Reported-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
0 files changed, 0 insertions, 0 deletions