Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ce85dd58
Commit
ce85dd58
authored
Apr 02, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9p: we are leaking glock.client_id in v9fs_file_getlock()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e494b6b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
fs/9p/vfs_file.c
fs/9p/vfs_file.c
+2
-0
No files found.
fs/9p/vfs_file.c
View file @
ce85dd58
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <linux/idr.h>
#include <linux/idr.h>
#include <linux/uio.h>
#include <linux/uio.h>
#include <linux/slab.h>
#include <net/9p/9p.h>
#include <net/9p/9p.h>
#include <net/9p/client.h>
#include <net/9p/client.h>
...
@@ -286,6 +287,7 @@ static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
...
@@ -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_end
=
glock
.
start
+
glock
.
length
-
1
;
fl
->
fl_pid
=
glock
.
proc_id
;
fl
->
fl_pid
=
glock
.
proc_id
;
}
}
kfree
(
glock
.
client_id
);
return
res
;
return
res
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment