ksmbd: fix uninitialized symbol 'pntsd_size'
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 1 Dec 2021 01:12:39 +0000 (10:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:28:57 +0000 (12:28 +0100)
commitf43ba86a821194778fcb1c10c0d68909d6a72889
tree8ab10168a4dcf864372d124c9083203ec211b7e6
parent89d0ffb4bb960d6ccfac4d01cbd5e0e4727c1ebc
ksmbd: fix uninitialized symbol 'pntsd_size'

commit f2e78affc48dee29b989c1d9b0d89b503dcd1204 upstream.

No check for if "rc" is an error code for build_sec_desc().
This can cause problems with using uninitialized pntsd_size.

Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org # v5.15
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/smb2pdu.c