diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-07-18 01:11:45 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-08-03 23:14:10 +0200 |
commit | 1f70ef96b176bdb3b75230ec68850d83736b387b (patch) | |
tree | dd1007c5227311063ef2cfbd0f7ae8d38b345d04 /fs/nfs/dir.c | |
parent | nfs: clear_request_commit while holding i_lock (diff) | |
download | linux-1f70ef96b176bdb3b75230ec68850d83736b387b.tar.xz linux-1f70ef96b176bdb3b75230ec68850d83736b387b.zip |
NFS: add checks for returned value of try_module_get()
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>
Diffstat (limited to 'fs/nfs/dir.c')
0 files changed, 0 insertions, 0 deletions