diff options
| author | Felix Fietkau <[email protected]> | 2023-03-30 12:08:38 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-03-30 18:44:59 +0000 |
| commit | 8c1cb87c2a5c29da416848451a687473f379611c (patch) | |
| tree | df573685f46a1ce8c29ffa3e841f645bc04dffee /drivers/net/dsa/microchip/ksz_common.c | |
| parent | net: mvneta: fix potential double-frees in mvneta_txq_sw_deinit() (diff) | |
| download | kernel-8c1cb87c2a5c29da416848451a687473f379611c.tar.gz kernel-8c1cb87c2a5c29da416848451a687473f379611c.zip | |
net: ethernet: mtk_eth_soc: fix flow block refcounting logic
Since we call flow_block_cb_decref on FLOW_BLOCK_UNBIND, we also need to
call flow_block_cb_incref for a newly allocated cb.
Also fix the accidentally inverted refcount check on unbind.
Fixes: 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support")
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
0 files changed, 0 insertions, 0 deletions
