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
This commit is contained in:
@ -1665,7 +1665,8 @@ generic_add_lease(struct file *filp, long arg, struct file_lock **flp, void **pr
|
||||
}
|
||||
|
||||
if (my_fl != NULL) {
|
||||
error = lease->fl_lmops->lm_change(my_fl, arg, &dispose);
|
||||
lease = my_fl;
|
||||
error = lease->fl_lmops->lm_change(lease, arg, &dispose);
|
||||
if (error)
|
||||
goto out;
|
||||
goto out_setup;
|
||||
|
Reference in New Issue
Block a user