]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: do not pause queue unconditionally on error path
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 19 Dec 2017 11:33:56 +0000 (12:33 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:39:07 +0000 (19:39 +0200)
commitb3b10d48634b3e2dff33236419c0f2a00aca923b
tree907e96d17c26dea1b1a9bae790cd8ebe396becf0
parent58c2bb8515979df8363af4d87ebcb8fb31fb98cb
rt2x00: do not pause queue unconditionally on error path

Pausing queue without checking threshold is racy with txdone path.
Moreover we do not need pause queue on any error, but only if queue
is full - in case when we send RTS frame ( other cases of almost full
queue are already handled in rt2x00queue_write_tx_frame() ).

Patch fixes of theoretically possible problem of pausing empty
queue.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Tested-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00mac.c