net: ipa: validate memory regions unconditionally
authorAlex Elder <elder@linaro.org>
Wed, 9 Jun 2021 22:34:55 +0000 (17:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 22:59:33 +0000 (15:59 -0700)
commit0300df2d9d249c3dd8e0ad1b7dd5b7da1b8d0e37
treee8df592dc92be6c6418f0d79fae45bd54a6b07f5
parent14ab6a208c11dcb7b91fda3e0866c7e6188dc553
net: ipa: validate memory regions unconditionally

Do memory region descriptor validation unconditionally, rather than
having it depend on IPA_VALIDATION being defined.

Pass the address of a memory region descriptor rather than a memory
ID to ipa_mem_valid().

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