diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-02 18:02:03 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-12 04:28:28 +0200 |
commit | ce85dd58ad5a6c209bb6e7413997b87b667db7ad (patch) | |
tree | 9ac9c13826f740ed67b9e281a4777616ec64159b /fs/9p/vfs_file.c | |
parent | 9p: switch to ->read_iter/->write_iter (diff) | |
download | linux-ce85dd58ad5a6c209bb6e7413997b87b667db7ad.tar.xz linux-ce85dd58ad5a6c209bb6e7413997b87b667db7ad.zip |
9p: we are leaking glock.client_id in v9fs_file_getlock()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/vfs_file.c')
-rw-r--r-- | fs/9p/vfs_file.c | 2 |
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 @@ #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; } |