From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C83FB3925D for ; Wed, 7 Jun 2023 20:24:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4710AC433D2; Wed, 7 Jun 2023 20:24:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686169477; bh=KkYjgmZrDx0+x484SYQKRr1+kRqvSeM1yMRuJuOSUAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=slQTsirp2UDR8iI18XPL3MjL6skCaNs5ThSFh1nvhmay7HQ9fp7yVBa+XYhNE2UVX pZEjwTvC+z5+BTaxjBf6MHX8r29BXTUrJxu9cliaHyGp5zLtkMrW353gC78ssn9Tb9 +IQjIsPLsyrLbRlF1Y0HqiMxCPzLo7bDaFeaba9E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bert Karwatzki , Simon Horman , Paolo Abeni , Sasha Levin Subject: [PATCH 6.3 068/286] net: ipa: Use correct value for IPA_STATUS_SIZE Date: Wed, 7 Jun 2023 22:12:47 +0200 Message-ID: <20230607200925.294009624@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230607200922.978677727@linuxfoundation.org> References: <20230607200922.978677727@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Bert Karwatzki [ Upstream commit be7f8012a513f5099916ee2da28420156cbb8cf3 ] 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 Reviewed-by: Simon Horman Link: https://lore.kernel.org/r/20230531103618.102608-1-spasswolf@web.de Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ipa/ipa_endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c index 2ee80ed140b72..afa1d56d9095c 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -119,7 +119,7 @@ enum ipa_status_field_id { }; /* Size in bytes of an IPA packet status structure */ -#define IPA_STATUS_SIZE sizeof(__le32[4]) +#define IPA_STATUS_SIZE sizeof(__le32[8]) /* IPA status structure decoder; looks up field values for a structure */ static u32 ipa_status_extract(struct ipa *ipa, const void *data, -- 2.39.2