From: Alexey Khoroshilov Date: Thu, 17 Jul 2014 23:11:45 +0000 (+0400) Subject: NFS: add checks for returned value of try_module_get() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~82^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f70ef96b176bdb3b75230ec68850d83736b387b;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed