]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFSv4.1: Fix uninitialised variable in devicenotify
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 3 Jan 2022 19:50:16 +0000 (14:50 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:41:56 +0000 (11:41 +0100)
commit82dcb6a732286666d5611a3353c126a5e6154d00
treeb6b9cfe4a14719ef16a1e71930c87b34d696ebdb
parentada7ae91f01263029861b9b353ba93385bf93b27
NFSv4.1: Fix uninitialised variable in devicenotify

BugLink: https://bugs.launchpad.net/bugs/1963889
[ Upstream commit b05bf5c63b326ce1da84ef42498d8e0e292e694c ]

When decode_devicenotify_args() exits with no entries, we need to
ensure that the struct cb_devicenotifyargs is initialised to
{ 0, NULL } in order to avoid problems in
nfs4_callback_devicenotify().

Reported-by: <rtm@csail.mit.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/nfs/callback.h
fs/nfs/callback_proc.c
fs/nfs/callback_xdr.c