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:
e494b6b
)
9p: we are leaking glock.client_id in v9fs_file_getlock()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 2 Apr 2015 16:02:03 +0000
(12:02 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 12 Apr 2015 02:28:28 +0000
(22:28 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/9p/vfs_file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/9p/vfs_file.c
b/fs/9p/vfs_file.c
index 0ac2969c9c2e75b8a88c9c136961bbdb1710f6e3..55cc9c80e1874d38e49bbbad537f719a19003572 100644
(file)
--- a/
fs/9p/vfs_file.c
+++ b/
fs/9p/vfs_file.c
@@
-37,6
+37,7
@@
#include <asm/uaccess.h>
#include <linux/idr.h>
#include <linux/uio.h>
+#include <linux/slab.h>
#include <net/9p/9p.h>
#include <net/9p/client.h>
@@
-286,6
+287,7
@@
static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
fl->fl_end = glock.start + glock.length - 1;
fl->fl_pid = glock.proc_id;
}
+ kfree(glock.client_id);
return res;
}