aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/tc
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2020-05-04 18:53:41 -0500
committerDavid S. Miller <davem@davemloft.net>2020-05-06 17:41:11 -0700
commit97e4692dda26d047899a3f1f3f57c3d861b6b9c9 (patch)
tree67f005ecd986b25a0bbd6fd0f501c18c25df19d5 /drivers/tc
parentMerge branch 'net-ipa-kill-endpoint-delay-mode-workaround' (diff)
downloadwireguard-linux-97e4692dda26d047899a3f1f3f57c3d861b6b9c9.tar.xz
wireguard-linux-97e4692dda26d047899a3f1f3f57c3d861b6b9c9.zip
net: ipa: fix a bug in ipa_endpoint_stop()
In ipa_endpoint_stop(), for TX endpoints we set the number of retries to 0. When we break out of the loop, retries being 0 means we return EIO rather than the value of ret (which should be 0). Fix this by using a non-zero retry count for both RX and TX channels, and just break out of the loop after calling gsi_channel_stop() for TX channels. This way only RX channels will retry, and the retry count will be non-zero at the end for TX channels (so the proper value gets returned). Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 713b6ebb4c376b3fb65fdceb3b59e401c93248f9) Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions