projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cf1c4b
)
NSM: Remove NULL pointer check from nsm_find()
author
Chuck Lever
<chuck.lever@oracle.com>
Sat, 6 Dec 2008 00:03:01 +0000
(19:03 -0500)
committer
J. Bruce Fields
<bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:53 +0000
(11:53 -0500)
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>
fs/lockd/mon.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/lockd/mon.c
b/fs/lockd/mon.c
index 38255455563d9b1c4dd4598705cbde5d8320c9e0..0a066a13478e0851e8369b0ca48ae878b7b4495e 100644
(file)
--- 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\" "