]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:49:27 +0000 (09:49 -0500)
commitd3fb98032f046688857a4803b26882b2c1d6d0be
treee438360259e7e8fcc3570da30e654ab7bf377b25
parent03933a9929b3a68abb7eb41f2a75c703c058d0f6
NFS: Fix uninitialized rpc_wait_queue

BugLink: http://bugs.launchpad.net/bugs/1724669
commit 68ebf8fe3bce8c167cf83fbd681c1eb1ed419c6c upstream.

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")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/nfs/client.c