projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NET]: Fix race when opening a proc file while a network namespace is exiting.
[firefly-linux-kernel-4.4.55.git]
/
fs
/
locks.c
diff --git
a/fs/locks.c
b/fs/locks.c
index 50857d2d3404a821268fb787f74ee1f7335ebd98..c795eaaf6c4ceb75e5b4a0e9775df8c37ffb9240 100644
(file)
--- a/
fs/locks.c
+++ b/
fs/locks.c
@@
-782,7
+782,7
@@
find_conflict:
if (request->fl_flags & FL_ACCESS)
goto out;
locks_copy_lock(new_fl, request);
- locks_insert_lock(
&inode->i_flock
, new_fl);
+ locks_insert_lock(
before
, new_fl);
new_fl = NULL;
error = 0;