Skip to content

Commit be7f801

Browse files
spasswolfPaolo Abeni
authored andcommitted
net: ipa: Use correct value for IPA_STATUS_SIZE
IPA_STATUS_SIZE was introduced in commit b8dc7d0 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: b8dc7d0 ("net: ipa: stop using sizeof(status)") Signed-off-by: Bert Karwatzki <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 30c6f0b commit be7f801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ipa/ipa_endpoint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ enum ipa_status_field_id {
119119
};
120120

121121
/* 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])
123123

124124
/* IPA status structure decoder; looks up field values for a structure */
125125
static u32 ipa_status_extract(struct ipa *ipa, const void *data,

0 commit comments

Comments
 (0)