net: ipa: always validate filter and route tables
authorAlex Elder <elder@linaro.org>
Mon, 26 Jul 2021 17:40:08 +0000 (12:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jul 2021 21:38:11 +0000 (22:38 +0100)
commit546948bf362541857d4f500705efe08a2fe0bb95
tree6c40d323d4d07b3d36e502e6d2541b33c9aa0340
parentf2c1dac0abcfa93e8b20065b8d6b4b2b6f9990aa
net: ipa: always validate filter and route tables

All checks in ipa_table_validate_build() are computed at build time,
so build that unconditionally.

In ipa_table_valid() calls to ipa_table_valid_one() are missing the
IPA pointer parameter is missing in (a bug that shows up only when
IPA_VALIDATE is defined).  Don't bother checking whether hashed
table memory regions are valid if hashed tables are not supported.

With those things fixed, have these table validation functions built
unconditionally (not dependent on IPA_VALIDATE).

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