diff options
| author | Alex Elder <elder@linaro.org> | 2022-06-10 10:46:10 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2022-06-13 12:01:58 +0100 |
| commit | 92f78f81ac4d0fa9b44cf394893adf25d2a8131f (patch) | |
| tree | e0c3f4a4ba3013fd541581f39cb6c6f03d0cb50e /drivers/net/ipa/gsi_trans.c | |
| parent | 27f2533bcc6e909b85d3c1b738fa1f203ed8a835 (diff) | |
net: ipa: verify command channel TLV count
In commit 8797972afff3d ("net: ipa: remove command info pool"), the
maximum number of IPA commands that would be sent in a single
transaction was defined. That number can't exceed the size of the
TLV FIFO on the command channel, and we can check that at runtime.
To add this check, pass a new flag to gsi_channel_data_valid() to
indicate the channel being checked is being used for IPA commands.
Knowing that we can also verify the channel direction is correct.
Use a new local variable that refers to the command-specific portion
of the data being checked.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/gsi_trans.c')
0 files changed, 0 insertions, 0 deletions
