]> 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)
commit42386ddee2c35503d6ad16a575430759d42357ea
tree4fdac000e60cc8d3965044731b7cfd9df0a85f4e
parent7e8e094c67a495aff6b93a38524055fd436fa0a1
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