fs/9p: Fix invalid mount options/args
authorPrem Karat <prem.karat@linux.vnet.ibm.com>
Fri, 6 May 2011 12:54:18 +0000 (18:24 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:18 +0000 (11:40 -0700)
commit6170eea647404a2e5726ae81cc8ccc45db89812d
tree6cf9f57d8f6ce75c49c1c576e82326cc8be62447
parente38b21e76bb89bba3e59da494de586aac23ad430
fs/9p: Fix invalid mount options/args

commit a2dd43bb0d7b9ce28f8a39254c25840c0730498e upstream.

Without this fix, if any invalid mount options/args are passed while mouting
the 9p fs, no error (-EINVAL) is returned and default arg value is assigned.

This fix returns -EINVAL when an invalid arguement is found while parsing
mount options.

Signed-off-by: Prem Karat <prem.karat@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/9p/v9fs.c