ncpfs: fix error return code in ncp_parse_options()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Jul 2013 23:00:44 +0000 (16:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:25 +0000 (10:33 -0700)
commit2417898b34ad3fbf2f31771c97ba87792bf97f0c
tree44a3051eaa35cdd996d920ffa5976e2139dae3b9
parentc707a81de71a27a499fde60fbb963f60602c1a94
ncpfs: fix error return code in ncp_parse_options()

Fix to return -EINVAL from the option parse error handling case instead
of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ncpfs/inode.c