]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: nfsd_file_lease_notifier_call gets a file_lease as an argument
authorJeff Layton <jlayton@kernel.org>
Fri, 12 Jul 2024 11:26:44 +0000 (07:26 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 12 Jul 2024 16:58:48 +0000 (12:58 -0400)
commit769d20028f45a4f442cfe558a32faba357a7f5e2
tree2bc35533111d0253e3ff8a3046809608e5689e11
parenta3123341dc358952ce2bf8067fbdfb7eaadf71bb
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: 05580bbfc6bc ("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>
fs/nfsd/filecache.c