summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_cmd.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-06-10 18:46:10 +0300
committerDavid S. Miller <davem@davemloft.net>2022-06-13 14:01:58 +0300
commit92f78f81ac4d0fa9b44cf394893adf25d2a8131f (patch)
treee0c3f4a4ba3013fd541581f39cb6c6f03d0cb50e /drivers/net/ipa/ipa_cmd.c
parent27f2533bcc6e909b85d3c1b738fa1f203ed8a835 (diff)
downloadlinux-92f78f81ac4d0fa9b44cf394893adf25d2a8131f.tar.xz
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/ipa_cmd.c')
0 files changed, 0 insertions, 0 deletions