cifs: fail i/o on soft mounts if sessionsetup errors out
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 5 Feb 2020 01:08:01 +0000 (11:08 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:35:54 +0000 (04:35 -0800)
commitb64d7f7af8f956befd43ea0afa870edcffe7f4b6
treef4e3b3e5fdc39281c78be07a91253b6b31a062db
parent3e3e8551a5a2537c002ac9d9fb0d68c93de303d5
cifs: fail i/o on soft mounts if sessionsetup errors out

commit b0dd940e582b6a60296b9847a54012a4b080dc72 upstream.

RHBZ: 1579050

If we have a soft mount we should fail commands for session-setup
failures (such as the password having changed/ account being deleted/ ...)
and return an error back to the application.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c