net: fec: validate the new settings in fec_enet_set_coalesce()
authorJakub Kicinski <kuba@kernel.org>
Wed, 11 Mar 2020 03:36:16 +0000 (20:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 05:40:26 +0000 (22:40 -0700)
commitab14961d10d02d20767612c78ce148f6eb85bd58
tree4907b8befcf5ff359f207e254b2e5359a3086a0c
parent7395f62d95aafacdb9bd4996ec2f95b4a655d7e6
net: fec: validate the new settings in fec_enet_set_coalesce()

fec_enet_set_coalesce() validates the previously set params
and if they are within range proceeds to apply the new ones.
The new ones, however, are not validated. This seems backwards,
probably a copy-paste error?

Compile tested only.

Fixes: d851b47b22fc ("net: fec: add interrupt coalescence feature support")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c