]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
NFS: Fix uninitialized rpc_wait_queue
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 22 Sep 2017 11:57:10 +0000 (07:57 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 1 Oct 2017 22:51:30 +0000 (18:51 -0400)
commit68ebf8fe3bce8c167cf83fbd681c1eb1ed419c6c
treea072af2954f775be39270f672ad956d0d0b35444
parentcdb2e53fd6dc715c5b45d0967fcb6dc574cb28f8
NFS: Fix uninitialized rpc_wait_queue

Michael Sterrett reports a NULL pointer dereference on NFSv3 mounts when
CONFIG_NFS_V4 is not set because the NFS UOC rpc_wait_queue has not been
initialized.  Move the initialization of the queue out of the CONFIG_NFS_V4
conditional setion.

Fixes: 7d6ddf88c4db ("NFS: Add an iocounter wait function for async RPC tasks")
Cc: stable@vger.kernel.org # 4.11+
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/client.c