cifs: fix CIFS_IOC_GET_MNT_INFO oops
authorDavid Disseldorp <ddiss@suse.de>
Wed, 3 May 2017 22:41:13 +0000 (00:41 +0200)
committerSteve French <smfrench@gmail.com>
Thu, 4 May 2017 00:32:35 +0000 (19:32 -0500)
commitd8a6e505d6bba2250852fbc1c1c86fe68aaf9af3
treee360222e1765717f60f0c32474fa6ef80268d51a
parentb704e70b7cf48f9b67c07d585168e102dfa30bb4
cifs: fix CIFS_IOC_GET_MNT_INFO oops

An open directory may have a NULL private_data pointer prior to readdir.

Fixes: 0de1f4c6f6c0 ("Add way to query server fs info for smb3")
Cc: stable@vger.kernel.org
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/ioctl.c