]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: fix mask check in bcmgenet_validate_flow()
authorDenis Efremov <efremov@linux.com>
Wed, 2 Sep 2020 11:18:45 +0000 (14:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2020 19:54:12 +0000 (12:54 -0700)
commitfbb094c6e6633f5ce15910e224b3922f58120c6f
treede277b83198f0ae569e14b8f7801c53749e71e6d
parent212556a4cc97054f0318e9db77888a61098d5609
net: bcmgenet: fix mask check in bcmgenet_validate_flow()

VALIDATE_MASK(eth_mask->h_source) is checked twice in a row in
bcmgenet_validate_flow(). Add VALIDATE_MASK(eth_mask->h_dest)
instead.

Fixes: 9b408d49445a ("net: bcmgenet: add support for ethtool rxnfc flows")
Signed-off-by: Denis Efremov <efremov@linux.com>
Acked-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c