summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-12-06 01:03:01 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-01-06 17:53:53 +0100
commitbc1cc6c4e476b60df48227165990c87a22db6bb7 (patch)
tree19919f4787df34201bd575ebf741a53e9879e084 /fs/lockd
parentNSM: Add dprintk() calls in nsm_find and nsm_release (diff)
downloadlinux-bc1cc6c4e476b60df48227165990c87a22db6bb7.tar.xz
linux-bc1cc6c4e476b60df48227165990c87a22db6bb7.zip
NSM: Remove NULL pointer check from nsm_find()
The nsm_find() function should never be called with a NULL IP address pointer. If it is, that's a bug. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/mon.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index 38255455563d..0a066a13478e 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -224,9 +224,6 @@ struct nsm_handle *nsm_find(const struct sockaddr *sap, const size_t salen,
struct nsm_handle *nsm = NULL;
struct nsm_handle *pos;
- if (!sap)
- return NULL;
-
if (hostname && memchr(hostname, '/', hostname_len) != NULL) {
if (printk_ratelimit()) {
printk(KERN_WARNING "Invalid hostname \"%.*s\" "