]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 09:54:13 +0000 (10:54 +0100)
commitdaf9c84758b8d2a8e3423fc98d6815f052e34a69
tree86f2b29f917572d69faaefe229e1d3606e7b9cdd
parente3849fc5a293d721b1ac385c89aceba62760794c
net: fec: validate the new settings in fec_enet_set_coalesce()

[ Upstream commit ab14961d10d02d20767612c78ce148f6eb85bd58 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/fec_main.c