]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: fix attempt to translate invalid filter ID
authorEdward Cree <ecree@solarflare.com>
Thu, 29 Jun 2017 15:50:06 +0000 (16:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 19:59:38 +0000 (15:59 -0400)
commitee1ae08e7560633997bb474f35de006b486f4fff
tree7e1c5c96244bdb703fae5368db5f9c146e05e427
parent091a288a46f90552f97086219ee92e95ff67fbc3
sfc: fix attempt to translate invalid filter ID

When filter insertion fails with no rollback, we were trying to convert
 EFX_EF10_FILTER_ID_INVALID to an id to store in 'ids' (which is either
 vlan->uc or vlan->mc).  This would WARN_ON_ONCE and then record a bogus
 filter ID of 0x1fff, neither of which is a good thing.

Fixes: 2d897a8146a2 ("sfc: fix filter_id misinterpretation in edge case")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c