diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-12-06 03:03:01 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-01-06 19:53:53 +0300 |
commit | bc1cc6c4e476b60df48227165990c87a22db6bb7 (patch) | |
tree | 19919f4787df34201bd575ebf741a53e9879e084 /fs/lockd | |
parent | 5cf1c4b19db99d21d44c2ab457cfd44eb86b4439 (diff) | |
download | linux-bc1cc6c4e476b60df48227165990c87a22db6bb7.tar.xz |
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.c | 3 |
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\" " |