Benjamin Coddington 68ebf8fe3b 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>
2017-10-01 18:51:30 -04:00
..
2017-10-01 18:51:30 -04:00
2017-07-13 17:12:04 -04:00
2017-07-13 17:12:04 -04:00
2017-07-13 15:58:04 -04:00
2017-07-13 15:58:04 -04:00
2017-04-20 13:39:35 -04:00
2017-07-13 14:35:37 -07:00
2017-07-13 16:00:15 -04:00
2017-10-01 18:51:30 -04:00
2017-09-11 22:20:38 -04:00
2017-07-13 15:58:04 -04:00
2017-09-11 22:20:38 -04:00