NFSv4.1: Fix uninitialised variable in devicenotify
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 3 Jan 2022 19:50:16 +0000 (14:50 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 6 Jan 2022 19:00:20 +0000 (14:00 -0500)
commitb05bf5c63b326ce1da84ef42498d8e0e292e694c
tree632a114b734760f5077e2da9f440c683ecf04415
parentfbd2057e5329d3502a27491190237b6be52a1cb6
NFSv4.1: Fix uninitialised variable in devicenotify

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