diff options
author | Paulo Alcantara <pc@cjr.nz> | 2022-10-04 15:10:09 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-31 13:26:54 +0100 |
commit | e4538d07e959194f6c6bf91ccd1920e18a95c0bc (patch) | |
tree | 9fb2a4d3d631ac13864a65d5d65a9431747dba39 | |
parent | 5f0d81cc1c59f5ce7914f5f52570b6b5868f02d7 (diff) |
cifs: fix uninitialised var in smb2_compound_op()
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>
-rw-r--r-- | fs/cifs/smb2inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index 7b14ece0d895..fc5776e7a782 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -415,6 +415,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, 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) |