]> git.itanic.dy.fi Git - linux-stable/commit
net: ipa: use ipa_table_mem() in ipa_table_reset_add()
authorAlex Elder <elder@linaro.org>
Wed, 2 Nov 2022 22:11:32 +0000 (17:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2022 10:16:53 +0000 (10:16 +0000)
commit6337b147828b4e3e893bde16dca8d4b6654d11c1
tree8c372e30a3219ca15cb0e6e96496408752040807
parent5cb76899fb47791c12eb9fce4aef8a858c41783d
net: ipa: use ipa_table_mem() in ipa_table_reset_add()

Similar to the previous commit, pass flags rather than a memory
region ID to ipa_table_reset_add(), and there use ipa_table_mem() to
look up the memory region affected based on those flags.

Currently all eight of these table memory regions are assumed to
exist, because they all have canaries within them.  Stop assuming
that will always be the case, and in ipa_table_reset_add() allow
these memory regions to be non-existent.

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