diff options
author | Alex Elder <elder@linaro.org> | 2021-06-09 17:34:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-09 15:59:33 -0700 |
commit | 1eec767746e5fe4e4376ad511558de3c77f49d82 (patch) | |
tree | ce5032e0d824d4c8cf17c03f55f464566d1459f9 /net/nfc | |
parent | 2f9be1e90860e8acb43dc164e25c0d0be60f6a7b (diff) |
net: ipa: pass memory configuration data to ipa_mem_valid()
Pass the memory configuration data array to ipa_mem_valid() for
validation, and use that rather than assuming it's already been
recorded in the IPA structure. Move the memory data array size
check into ipa_mem_valid().
Call ipa_mem_valid() early in ipa_mem_init(), and only proceed with
assigning the memory array pointer and size if it is found to be
valid.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions