Skip to content
Commit d1276c76 authored by Shinya Kuribayashi's avatar Shinya Kuribayashi Committed by Ben Warren
Browse files

drivers/net/rtl8139.c: Fix tx timeout



"to = (currticks() + RTL_TIMEOUT)" has possibilities to wrap around. If it
does, the condition "(currticks() < to)" becomes invalid and immediately
leads to tx timeout error. This patch introduces the fine-graded udely(10)
loops to ease the impact of wrapping around.

Signed-off-by: default avatarShinya Kuribayashi <shinya.kuribayashi@necel.com>
Cc: Masami Komiya <mkomiya@sonare.it>
Cc: Lucas Jin <lucasjin@gmail.com>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent 18ee320f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment