mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvethernet: fix syntax error in fpe ioctl
Issue: Due to syntax error, only 1 byte getting copied from user space to kernel space. Fix: Fix syntax error. Add error logs Bug 3991771 Change-Id: Iff96d0f51605fab2954c1c9a423ad9a6781c1e21 Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2866442 Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d22a9b34c6
commit
dd7632c195
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2019-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved */
|
||||
/* Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved */
|
||||
|
||||
#include "ether_linux.h"
|
||||
|
||||
@@ -976,7 +976,8 @@ static int ether_config_fpe(struct net_device *dev,
|
||||
}
|
||||
|
||||
if (copy_from_user(&ioctl_data.fpe, (void __user *)u_fpe_cfg,
|
||||
sizeof(struct osi_fpe_config) != 0U)) {
|
||||
sizeof(struct osi_fpe_config)) != 0U) {
|
||||
dev_err(pdata->dev, "%s: copy_from_user error\n", __func__);
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user