diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-03-06 13:31:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-03-06 13:31:38 -0500 |
commit | 7c5bde7adeba317d266b09db8ea9c3857eda86f5 (patch) | |
tree | 0ad81b6e3ffe0725123da420e0ebfd16f602e053 /fs | |
parent | 1b1bd56191692e3a4a9079f469d9500005c89362 (diff) | |
parent | 0164bf0239777811bdc3e01f45501174dc6db19d (diff) |
Merge tag 'locks-v4.0-3' of git://git.samba.org/jlayton/linux
Pull file locking fix from Jeff Layton:
"Just a single patch to fix a memory leak that Daniel Wagner discovered
while doing some testing with leases"
* tag 'locks-v4.0-3' of git://git.samba.org/jlayton/linux:
locks: fix fasync_struct memory leak in lease upgrade/downgrade handling
Diffstat (limited to 'fs')
-rw-r--r-- | fs/locks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c index 365c82e1b3a9..f1bad681fc1c 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -1665,7 +1665,8 @@ generic_add_lease(struct file *filp, long arg, struct file_lock **flp, void **pr | |||
1665 | } | 1665 | } |
1666 | 1666 | ||
1667 | if (my_fl != NULL) { | 1667 | if (my_fl != NULL) { |
1668 | error = lease->fl_lmops->lm_change(my_fl, arg, &dispose); | 1668 | lease = my_fl; |
1669 | error = lease->fl_lmops->lm_change(lease, arg, &dispose); | ||
1669 | if (error) | 1670 | if (error) |
1670 | goto out; | 1671 | goto out; |
1671 | goto out_setup; | 1672 | goto out_setup; |