Skip to content

Commit 769d200

Browse files
jtlaytonchucklever
authored andcommitted
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: 05580bb ("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>
1 parent a312334 commit 769d200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/filecache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ static int
664664
nfsd_file_lease_notifier_call(struct notifier_block *nb, unsigned long arg,
665665
void *data)
666666
{
667-
struct file_lock *fl = data;
667+
struct file_lease *fl = data;
668668

669669
/* Only close files for F_SETLEASE leases */
670670
if (fl->c.flc_flags & FL_LEASE)

0 commit comments

Comments
 (0)