Skip to content

Commit 69ccafd

Browse files
pcacjrSteve French
authored and
Steve French
committed
cifs: fix uninitialised var in smb2_compound_op()
Fix uninitialised variable @idata when calling smb2_compound_op() with SMB2_OP_POSIX_QUERY_INFO. Reported-by: kernel test robot <[email protected]> Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Reviewed-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 76894f3 commit 69ccafd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/smb2inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
415415
tcon->tid);
416416
break;
417417
case SMB2_OP_POSIX_QUERY_INFO:
418+
idata = ptr;
418419
if (rc == 0 && cfile && cfile->symlink_target) {
419420
idata->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL);
420421
if (!idata->symlink_target)

0 commit comments

Comments
 (0)