]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: cls: Fix leaked ethtool_rx_flow_rule
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 23 May 2019 08:47:24 +0000 (10:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 16:13:00 +0000 (09:13 -0700)
commit31d6d449036d72ee56de5f0a4a6b70a7bc925710
tree55f3e4df7882e345f46b09dd64505df923b7a005
parent1b63227aee58f731bed503d716d3861018f3c84c
net: mvpp2: cls: Fix leaked ethtool_rx_flow_rule

The flow_rule is only used when configuring the classification tables,
and should be free'd once we're done using it. The current code only
frees it in the error path.

Fixes: 972cece191b5 ("net: mvpp2: cls: Add Classification offload support")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c