projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc1cc6c
)
NSM: Remove !nsm check from nsm_release()
author
Chuck Lever
<chuck.lever@oracle.com>
Sat, 6 Dec 2008 00:03:09 +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_release() function should never be called with a NULL handle
point. 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
|
history
diff --git
a/fs/lockd/mon.c
b/fs/lockd/mon.c
index
0a066a1
..
0792900
100644
(file)
--- a/
fs/lockd/mon.c
+++ b/
fs/lockd/mon.c
@@
-288,8
+288,6
@@
found:
*/
void nsm_release(struct nsm_handle *nsm)
{
- if (!nsm)
- return;
if (atomic_dec_and_lock(&nsm->sm_count, &nsm_lock)) {
list_del(&nsm->sm_link);
spin_unlock(&nsm_lock);