projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b6dc1d
)
nfsd: Fix a memory leak of struct file_lock
author
Kinglong Mee
<kinglongmee@gmail.com>
Mon, 13 Jul 2015 09:30:51 +0000
(17:30 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 10 Aug 2015 20:05:45 +0000
(16:05 -0400)
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index 61dfb33f05593c1b19dff8a5346dee37a3539d79..84fb6eb5ff2f3410d79d33fa4f2115e36211fe11 100644
(file)
--- a/
fs/nfsd/nfs4state.c
+++ b/
fs/nfsd/nfs4state.c
@@
-3934,6
+3934,7
@@
static int nfs4_setlease(struct nfs4_delegation *dp)
if (!filp) {
/* We should always have a readable file here */
WARN_ON_ONCE(1);
+ locks_free_lock(fl);
return -EBADF;
}
fl->fl_file = filp;