diff options
| author | Henrique Carvalho <[email protected]> | 2024-10-22 18:21:26 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2024-10-23 12:42:22 +0000 |
| commit | 9a5dd61151399ad5a5d69aad28ab164734c1e3bc (patch) | |
| tree | fe31f832e4eb4f9582ef9922319188d01239cead /rust/helpers/task.c | |
| parent | Linux 6.12-rc4 (diff) | |
| download | kernel-9a5dd61151399ad5a5d69aad28ab164734c1e3bc.tar.gz kernel-9a5dd61151399ad5a5d69aad28ab164734c1e3bc.zip | |
smb: client: Handle kstrdup failures for passwords
In smb3_reconfigure(), after duplicating ctx->password and
ctx->password2 with kstrdup(), we need to check for allocation
failures.
If ses->password allocation fails, return -ENOMEM.
If ses->password2 allocation fails, free ses->password, set it
to NULL, and return -ENOMEM.
Fixes: c1eb537bf456 ("cifs: allow changing password during remount")
Reviewed-by: David Howells <[email protected]
Signed-off-by: Haoxiang Li <[email protected]>
Signed-off-by: Henrique Carvalho <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
