cifs: returning mount parm processing errors correctly
authorSteve French <stfrench@microsoft.com>
Thu, 28 Jan 2021 22:43:03 +0000 (16:43 -0600)
committerSteve French <stfrench@microsoft.com>
Thu, 28 Jan 2021 22:43:03 +0000 (16:43 -0600)
commitbd2f0b43c1c864fa653342c5c074bfcd29f10934
treec547ea7ea7b27ea68a48c02f416481bffed58cb5
parentc9b8cd6a39c48b2827c0925b648b221b5f8ef25d
cifs: returning mount parm processing errors correctly

During additional testing of the updated cifs.ko with the
new mount API support, we found a few additional cases where
we were logging errors, but not returning them to the user.

For example:
   a) invalid security mechanisms
   b) invalid cache options
   c) unsupported rdma
   d) invalid smb dialect requested

Fixes: 24e0a1eff9e2 ("cifs: switch to new mount api")
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/fs_context.c