net/9p/client.c: fix potential refcnt problem of trans module
authorChengguang Xu <[email protected]>
Thu, 5 Apr 2018 23:20:01 +0000 (16:20 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:23 +0000 (21:36 -0700)
commit9421c3e64137ec69e5cf4ed024dc777a09b7779f
tree53dfc3a13cfc070472ae9a0aa4d6dadd9fc1cf30
parent7ff3c2046803ac99d95de6d63cda46c84f72293b
net/9p/client.c: fix potential refcnt problem of trans module

When specifying trans_mod multiple times in a mount, it will cause an
inaccurate refcount of the trans module.  Also, in the error case of
option parsing, we should put the trans module if we have already got
it.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Chengguang Xu <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: David Miller <[email protected]>
Cc: Eric Van Hensbergen <[email protected]>
Cc: Ron Minnich <[email protected]>
Cc: Latchesar Ionkov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
net/9p/client.c