cifs: fix potential double free during failed mount
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 31 May 2022 03:01:17 +0000 (13:01 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:28 +0000 (10:22 +0200)
commitce0008a0e410cdd95f0d8cd81b2902ec10a660c4
tree0bf1274d705b9a8a383d87cd71650ab537d0aa89
parentd7b5577272c21614c57bb894211a232107868c98
cifs: fix potential double free during failed mount

commit 8378a51e3f8140f60901fb27208cc7a6e47047b5 upstream.

RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=2088799

Cc: stable@vger.kernel.org
Signed-off-by: Roberto Bergantinos <rbergant@redhat.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifsfs.c