aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-04-02 12:02:03 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-11 22:28:28 -0400
commitce85dd58ad5a6c209bb6e7413997b87b667db7ad (patch)
tree9ac9c13826f740ed67b9e281a4777616ec64159b
parente494b6b5e1034db00571c44e089e6fe3845b6e8c (diff)
9p: we are leaking glock.client_id in v9fs_file_getlock()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/9p/vfs_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index 0ac2969c9c2e..55cc9c80e187 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -37,6 +37,7 @@
37#include <asm/uaccess.h> 37#include <asm/uaccess.h>
38#include <linux/idr.h> 38#include <linux/idr.h>
39#include <linux/uio.h> 39#include <linux/uio.h>
40#include <linux/slab.h>
40#include <net/9p/9p.h> 41#include <net/9p/9p.h>
41#include <net/9p/client.h> 42#include <net/9p/client.h>
42 43
@@ -286,6 +287,7 @@ static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
286 fl->fl_end = glock.start + glock.length - 1; 287 fl->fl_end = glock.start + glock.length - 1;
287 fl->fl_pid = glock.proc_id; 288 fl->fl_pid = glock.proc_id;
288 } 289 }
290 kfree(glock.client_id);
289 return res; 291 return res;
290} 292}
291 293