diff options
author | Pan Jiafei <Jiafei.Pan@freescale.com> | 2015-05-06 05:07:48 (GMT) |
---|---|---|
committer | Honghua Yin <Hong-Hua.Yin@freescale.com> | 2015-05-14 05:46:50 (GMT) |
commit | fcb98ca99626b913043d7f0264601ec04a7fbf10 (patch) | |
tree | 41e07caf9ea7307c7081fc141a94dd2cd3a4ed0e /drivers/net/ethernet/freescale/fman/src/wrapper | |
parent | 0af4b6a3b092660a7b90f3f5c0bf7942e76eec3a (diff) | |
download | linux-fsl-qoriq-fcb98ca99626b913043d7f0264601ec04a7fbf10.tar.xz |
fmd: fix ioctl of FM_CtrlMonGetCounters
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com>
Change-Id: If3f1264a02dbc9241b10e6050ff0c55c17170ab1
Reviewed-on: http://git.am.freescale.net:8181/35983
Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com>
Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/src/wrapper')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c index 109dd36..886cd5d 100644 --- a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c +++ b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c @@ -3523,7 +3523,7 @@ t_Error LnxwrpFmIOCTL(t_LnxWrpFmDev *p_LnxWrpFmDev, unsigned int cmd, unsigned l else #endif { - if (copy_from_user(¶m, (void *)arg, sizeof(ioc_fm_counters_params_t))) + if (copy_from_user(¶m, (void *)arg, sizeof(ioc_fm_ctrl_mon_counters_params_t))) RETURN_ERROR(MINOR, E_WRITE_FAILED, NO_MSG); } |