]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: don't be a hog in gsi_channel_poll()
authorAlex Elder <elder@linaro.org>
Fri, 15 May 2020 19:52:03 +0000 (14:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 22:14:54 +0000 (15:14 -0700)
commit01219fb4ea71db3bfb3ff7aa0529589a5c59ccc6
tree53116d902f1e883ad107eeac4f0366e9449922b1
parent664662e6de72167c9546ea74e8f4d673734f16c0
net: ipa: don't be a hog in gsi_channel_poll()

The iteration count value used in gsi_channel_poll() is intended to
limit poll iterations to the budget supplied as an argument.  But
it's never updated.

Fix this bug by incrementing the count each time through the loop.

Reported-by: Sharath Chandra Vurukala <sharathv@codeaurora.com>
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.c