Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ipa: Use correct value for IPA_STATUS_SIZE

IPA_STATUS_SIZE was introduced in commit b8dc7d0eea5a as a replacement
for the size of the removed struct ipa_status which had size
sizeof(__le32[8]). Use this value as IPA_STATUS_SIZE.

Fixes: b8dc7d0eea5a ("net: ipa: stop using sizeof(status)")
Signed-off-by: Bert Karwatzki <spasswolf@web.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230531103618.102608-1-spasswolf@web.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Bert Karwatzki and committed by
Paolo Abeni
be7f8012 30c6f0bf

+1 -1
+1 -1
drivers/net/ipa/ipa_endpoint.c
··· 119 119 }; 120 120 121 121 /* Size in bytes of an IPA packet status structure */ 122 - #define IPA_STATUS_SIZE sizeof(__le32[4]) 122 + #define IPA_STATUS_SIZE sizeof(__le32[8]) 123 123 124 124 /* IPA status structure decoder; looks up field values for a structure */ 125 125 static u32 ipa_status_extract(struct ipa *ipa, const void *data,