Skip to content
Commit 20fd4f42 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

netdevsim: switch to memdup_user_nul()



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

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c3dde0ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment