Skip to content

Commit ba77f7a

Browse files
committed
Merge tag '6.6-rc3-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fix from Steve French: "Fix for password freeing potential oops (also for stable)" * tag '6.6-rc3-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6: fs/smb/client: Reset password pointer to NULL
2 parents 9f3ebbe + e6e43b8 commit ba77f7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/smb/client/fs_context.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
15411541

15421542
cifs_parse_mount_err:
15431543
kfree_sensitive(ctx->password);
1544+
ctx->password = NULL;
15441545
return -EINVAL;
15451546
}
15461547

0 commit comments

Comments
 (0)