smb: client: get rid of kstrdup() when parsing pass2 mount option
authorPaulo Alcantara <pc@manguebit.org>
Sat, 26 Jul 2025 16:40:28 +0000 (13:40 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 28 Jul 2025 14:41:17 +0000 (09:41 -0500)
commit1b6075ebd34da9c79243416f4c24d418fa490059
treec9276412db7ca8e5a255d182587bc95c7de20da7
parent524fa5bcc384491140323f12bf12b6e3e0f5b84d
smb: client: get rid of kstrdup() when parsing pass2 mount option

Steal string reference from @param->string rather than duplicating it.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c