mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
net: stmmac: tc: Do not return a fragment entry
Do not try to return a fragment entry from TC list. Otherwise we may not clean properly allocated entries. Signed-off-by: Jose Abreu <joabreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e8df7e8c23
commit
4a6a1385a4
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ static struct stmmac_tc_entry *tc_find_entry(struct stmmac_priv *priv,
|
|||
entry = &priv->tc_entries[i];
|
||||
if (!entry->in_use && !first && free)
|
||||
first = entry;
|
||||
if (entry->handle == loc && !free)
|
||||
if ((entry->handle == loc) && !free && !entry->is_frag)
|
||||
dup = entry;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue