summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-09-30 14:53:30 +0200
committerJakub Kicinski <kuba@kernel.org>2021-10-02 00:13:20 +0200
commit019d9329e7481cfaccbd8ed17b1e04ca76970f13 (patch)
tree85de64977b19c2173698a6103d77cf5db9cca4e5 /fs
parentnet_sched: fix NULL deref in fifo_set_limit() (diff)
downloadlinux-019d9329e7481cfaccbd8ed17b1e04ca76970f13.tar.xz
linux-019d9329e7481cfaccbd8ed17b1e04ca76970f13.zip
net: mscc: ocelot: fix VCAP filters remaining active after being deleted
When ocelot_flower.c calls ocelot_vcap_filter_add(), the filter has a given filter->id.cookie. This filter is added to the block->rules list. However, when ocelot_flower.c calls ocelot_vcap_block_find_filter_by_id() which passes the cookie as argument, the filter is never found by filter->id.cookie when searching through the block->rules list. This is unsurprising, since the filter->id.cookie is an unsigned long, but the cookie argument provided to ocelot_vcap_block_find_filter_by_id() is a signed int, and the comparison fails. Fixes: 50c6cc5b9283 ("net: mscc: ocelot: store a namespaced VCAP filter ID") Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://lore.kernel.org/r/20210930125330.2078625-1-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions