NFS: add checks for returned value of try_module_get()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 17 Jul 2014 23:11:45 +0000 (03:11 +0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 3 Aug 2014 21:14:10 +0000 (17:14 -0400)
There is a couple of places in client code where returned value
of try_module_get() is ignored. As a result there is a small chance
to premature unload module because of unbalanced refcounting.

The patch adds error handling in that places.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

No differences found