Commit ce85dd58 authored by Al Viro's avatar Al Viro

9p: we are leaking glock.client_id in v9fs_file_getlock()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e494b6b5
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment