smb: client: get rid of kstrdup() when parsing user mount option
authorPaulo Alcantara <pc@manguebit.org>
Sat, 26 Jul 2025 16:36:51 +0000 (13:36 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 28 Jul 2025 14:40:20 +0000 (09:40 -0500)
commite5acab35feffb6f1b7f4ee0d146666a241024804
treef381a0ec3321f25a89569b92535c6ed0cbfe7a24
parent309c2b776c8716d4e3b98506bde3ccd131f2fae6
smb: client: get rid of kstrdup() when parsing user 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