]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 05:40:26 +0000 (22:40 -0700)
commit2ae155e7eeb8367990fdffda5c5c5b5ccc99aeb7
tree4907b8befcf5ff359f207e254b2e5359a3086a0c
parenta9afdab6fadaa4ae6dfdbcc278ccb3bd70abef96
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: a9b28f44efbb ("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