]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:44:49 +0000 (12:44 +0100)
commita1a4f1704e087d6bed9d66de103c11a680ff1ada
treea5f062f25db0fd419241fb22ddebf14a83afe7ca
parent5582381be5cacb5d86db3798f3af7eaa67058520
NFSv4.1: Fix uninitialised variable in devicenotify

[ 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>
fs/nfs/callback.h
fs/nfs/callback_proc.c
fs/nfs/callback_xdr.c