]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Fix oops due to uninitialised variable
authorDavid Howells <dhowells@redhat.com>
Tue, 19 Aug 2025 15:27:36 +0000 (16:27 +0100)
committerSteve French <stfrench@microsoft.com>
Tue, 19 Aug 2025 16:16:14 +0000 (11:16 -0500)
commit453a6d2a68e54a483d67233c6e1e24c4095ee4be
tree99a715d7d2dcf4f3e653469b0460921d91d503e8
parentc17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
cifs: Fix oops due to uninitialised variable

Fix smb3_init_transform_rq() to initialise buffer to NULL before calling
netfs_alloc_folioq_buffer() as netfs assumes it can append to the buffer it
is given.  Setting it to NULL means it should start a fresh buffer, but the
value is currently undefined.

Fixes: a2906d3316fc ("cifs: Switch crypto buffer to use a folio_queue rather than an xarray")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Paulo Alcantara <pc@manguebit.org>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c