--- /dev/null
+From 69ccafdd35cdffd72504bfed58dcaee5e73a88a7 Mon Sep 17 00:00:00 2001
+From: Paulo Alcantara <pc@cjr.nz>
+Date: Tue, 4 Oct 2022 15:10:09 -0300
+Subject: cifs: fix uninitialised var in smb2_compound_op()
+
+From: Paulo Alcantara <pc@cjr.nz>
+
+commit 69ccafdd35cdffd72504bfed58dcaee5e73a88a7 upstream.
+
+Fix uninitialised variable @idata when calling smb2_compound_op() with
+SMB2_OP_POSIX_QUERY_INFO.
+
+Reported-by: kernel test robot <lkp@intel.com>
+Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
+Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
+Signed-off-by: Steve French <stfrench@microsoft.com>
+Cc: Guenter Roeck <linux@roeck-us.net>
+Cc: Conor Dooley <conor@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/cifs/smb2inode.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/fs/cifs/smb2inode.c
++++ b/fs/cifs/smb2inode.c
+@@ -415,6 +415,7 @@ static int smb2_compound_op(const unsign
+ tcon->tid);
+ break;
+ case SMB2_OP_POSIX_QUERY_INFO:
++ idata = ptr;
+ if (rc == 0 && cfile && cfile->symlink_target) {
+ idata->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL);
+ if (!idata->symlink_target)