aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2023-11-13 19:42:49 +0200
committerJakub Kicinski <kuba@kernel.org>2023-11-14 19:48:02 -0800
commitfa02de9e75889915b554eda1964a631fd019973b (patch)
tree2bdae4aeeef99312ac705ca97723a7f82861d1cb /scripts/gdb/linux/proc.py
parent4b7b492615cf3017190f55444f7016812b66611d (diff)
net: stmmac: fix rx budget limit check
The while loop condition verifies 'count < limit'. Neither value change before the 'count >= limit' check. As is this check is dead code. But code inspection reveals a code path that modifies 'count' and then goto 'drain_data' and back to 'read_again'. So there is a need to verify count value sanity after 'read_again'. Move 'read_again' up to fix the count limit check. Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support") Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Link: https://lore.kernel.org/r/d9486296c3b6b12ab3a0515fcd47d56447a07bfc.1699897370.git.baruch@tkos.co.il Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions