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)
commit8672bab7eb947222609bec8ed8a423bc72bccdbe
tree4fdac000e60cc8d3965044731b7cfd9df0a85f4e
parent4601e75596cb7a4d538e7b9cf0b599b364acbae8
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