net/9p: Fix crash due to bad mount parameters.
authorAbhishek Kulkarni <adkulkar@umail.iu.edu>
Wed, 1 Jul 2009 08:50:54 +0000 (08:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2009 20:17:01 +0000 (13:17 -0700)
commit15da4b1612d608a47e095439b3dd1d77ffe20e0c
treebc698a7851c73e86e2ac8ef8bfe32c14aff6c71c
parent887b5ea3683ce04966e35fa2e5fe215bedcde73c
net/9p: Fix crash due to bad mount parameters.

It is not safe to use match_int without checking the token type returned
by match_token (especially when the token type returned is Opt_err and
args is empty). Fix it.

Signed-off-by: Abhishek Kulkarni <adkulkar@umail.iu.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/9p/trans_fd.c