Commit 2fb425f2 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

netdevsim: switch to memdup_user_nul()



[ Upstream commit 20fd4f42 ]

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>
Stable-dep-of: ee767463 ("netdevsim: prevent bad user input in nsim_dev_health_break_write()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 82c7ad9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment