nfsd: nfsd_file_lease_notifier_call gets a file_lease as an argument
"data" actually refers to a file_lease and not a file_lock. Both structs
have their file_lock_core as the first field though, so this bug should
be harmless without struct randomization in play.
Reported-by: Florian Evers <florian-evers@gmx.de>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219008
Fixes: 05580bbfc6
("nfsd: adapt to breakup of struct file_lock")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Florian Evers <florian-evers@gmx.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
a3123341dc
commit
769d20028f
@ -664,7 +664,7 @@ static int
|
|||||||
nfsd_file_lease_notifier_call(struct notifier_block *nb, unsigned long arg,
|
nfsd_file_lease_notifier_call(struct notifier_block *nb, unsigned long arg,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
struct file_lock *fl = data;
|
struct file_lease *fl = data;
|
||||||
|
|
||||||
/* Only close files for F_SETLEASE leases */
|
/* Only close files for F_SETLEASE leases */
|
||||||
if (fl->c.flc_flags & FL_LEASE)
|
if (fl->c.flc_flags & FL_LEASE)
|
||||||
|
Loading…
Reference in New Issue
Block a user