Skip to content
Commit fa586abc authored by Qing Wang's avatar Qing Wang Committed by Thierry Reding
Browse files

firmware: tegra: Switch over to memdup_user()



This patch fixes the following Coccinelle warning:

drivers/firmware/tegra/bpmp-debugfs.c:379: WARNING opportunity for memdup_user

Use memdup_user() rather than duplicating its implementation. This is a
little bit restricted to reduce false positives.

Signed-off-by: default avatarQing Wang <wangqing@vivo.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 568035b0
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