diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-06-24 20:26:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-28 12:06:00 -0700 |
commit | de279fd887d1237ec1cd330e1a3c02807eb9ba56 (patch) | |
tree | 6befa9f3b551287eb3283acc368e1624d8618395 /drivers/net/wimax | |
parent | 7b7a1b8b3bd1742ca5ab259e741da0070e936db0 (diff) | |
download | kernel_samsung_espresso10-de279fd887d1237ec1cd330e1a3c02807eb9ba56.zip kernel_samsung_espresso10-de279fd887d1237ec1cd330e1a3c02807eb9ba56.tar.gz kernel_samsung_espresso10-de279fd887d1237ec1cd330e1a3c02807eb9ba56.tar.bz2 |
sfc: Fix loop condition for efx_filter_search() when !for_insert
[ Upstream commit 4017dbdc14af1903dc9fcba4d08b89c02325069d ]
efx_filter_remove_filter() fails to remove inserted filters in some cases.
For example:
1. Two filters A and B have specifications that result in an initial
hash collision.
2. A is inserted first, followed by B.
3. An attempt to remove B first succeeds, but if A is removed first
a subsequent attempt to remove B fails.
When searching for an existing filter (!for_insert),
efx_filter_search() must always continue to the maximum search depth
for the given type rather than stopping at the first unused entry.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wimax')
0 files changed, 0 insertions, 0 deletions