]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: verify a few more IDs
authorAlex Elder <elder@linaro.org>
Fri, 2 Sep 2022 21:02:18 +0000 (16:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Sep 2022 11:47:02 +0000 (12:47 +0100)
commitb4bfdeaf4ca94716872c3e60d1f13d905e7d56ea
tree4fdac000e60cc8d3965044731b7cfd9df0a85f4e
parent8403f7f01be06efa8373e070e234259cca9813ad
net: ipa: verify a few more IDs

The completed transaction list is used in gsi_channel_trans_complete()
to return the next transaction in completed state.

Add some temporary checks to verify the transaction indicated by the
completed ID matches the one first in this list.

Similarly, we use the pending and completed transaction lists when
cancelling pending transactions in gsi_channel_trans_cancel_pending().

Add temporary checks there to verify the transactions indicated by
IDs match those tracked by these lists.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi_trans.c