net: ipa: validate memory regions based on version
authorAlex Elder <elder@linaro.org>
Wed, 9 Jun 2021 22:35:01 +0000 (17:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 22:59:33 +0000 (15:59 -0700)
commit75bcfde6c1131371adc2388b9226db7b2465e4c1
tree00637832aef0373fc6275e33d8c8871c636b27cc
parentd39ffb97079b3f97f4f9d7cc633c78a1f69d3264
net: ipa: validate memory regions based on version

Introduce ipa_mem_id_valid(), and use it to check defined memory
regions to ensure they are valid for a given version of IPA.

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