ksmbd: switch to use kmemdup_nul() helper
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 25 Jul 2023 12:31:47 +0000 (20:31 +0800)
committerSteve French <stfrench@microsoft.com>
Tue, 29 Aug 2023 17:30:19 +0000 (12:30 -0500)
commit084ba46fc41c21ba827fd92e61f78def7a6e52ea
tree1444bb049ce98eb27ceb6563b3213adb2d52c934
parent2dde18cd1d8fac735875f2e4987f11817cc0bc2c
ksmbd: switch to use kmemdup_nul() helper

Use kmemdup_nul() helper instead of open-coding to
simplify the code.

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/asn1.c