Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3719029pxb; Mon, 24 Jan 2022 16:14:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBlQs0wpvNvd2AmQml41VMrJftj4jHJLMjmu5ncXegzCTjRR6Vk88ynOKOSV5eQlxzXbAI X-Received: by 2002:a17:902:8d83:b0:14b:4063:dbcd with SMTP id v3-20020a1709028d8300b0014b4063dbcdmr9392550plo.72.1643069687723; Mon, 24 Jan 2022 16:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069687; cv=none; d=google.com; s=arc-20160816; b=CWiHXcerzAfCMGp0A0M2fVQO6B4Jx3zRCbZBLdbrmPac6LmNjd6qSRzxTOfP8r7RMC 5yXWsd6yCX+qd/8cLqHBlNCi6cBbrpQoAmx7bBvvaUBNxe3K1i6tfaNZ8A6phXYyT2+P l8kDCyj1/D+Tv9nWVJkQZV4m6TrCJkbR7I8fMhPoU6xIcjDbTiHe/J3tMSat7lLd5vQ/ XTOrKfBwnNaMY9jD06Cv8EkNzUqLgCwT8Dxb7GsrC7Ax1P9H8S2vIBlTs99WzGJgojzX VTLYT06DsmvZf0xlpMUKUnH0fcP5QaY7ASefvr0EIP5cgYK5crEUkaf3r15jwXe3ey9A UggA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1trnQkF02xi3znqcuBm0MZpka7z4krTYIFttJOC3hOA=; b=BzjvD/84qol5Utv/aW0T6Kn/ucoUfU3+yJqCUTSOPae0NWb+WOLFVnMKSS7ggo8Jew /dj/aLJ+HExE8S7sVWBq+vzEFoF+Tg8XCa1/IUzbtbsAZPf+QjrhJEpm0o9DkKn2bQ5m aJQ/FoObev4RjESpB4sJL6Pg4G+HkCYepy5RGzDjN4tDUI/DQwf5svCNCtWLvD1lPF44 A/NC3ypUFvzUVIZNXOaY3Ph4vXwAhrqOStjJUgjCucoFX0CU/d7F8s5KCb7bye7YvEZe fAWolWClyBgONfg1BOGZkdC1dLXedjkCpi1+/FKmCq1NDwGnv3mAk/f+K+oRoGRYkaHT ye7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=in+3hX30; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si15570423pfi.78.2022.01.24.16.14.35; Mon, 24 Jan 2022 16:14:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=in+3hX30; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2371168AbiAYAHI (ORCPT + 99 others); Mon, 24 Jan 2022 19:07:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1847009AbiAXXSP (ORCPT ); Mon, 24 Jan 2022 18:18:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AB7AC06F8D2; Mon, 24 Jan 2022 13:26:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B7346B811A2; Mon, 24 Jan 2022 21:26:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9057C340E4; Mon, 24 Jan 2022 21:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059566; bh=+ssm34GG7w4RratDitFIfpR8USrSyhcfbr2ppoi86JE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=in+3hX30x2c0aTleor+8lXsVwU+HNLlG4ZAAr4XyqXyoxJvHz7QAuGwNGkBZRhzhe d90JhDGO9cT0ydqs3GCtWpDAKNIPUVz5nE0KZqRDTlvy75dHXbW5UcO0bNLEGo1R5M zhMDrwA6G1Cezf4s4TlErCkUXyYkQz+/c3bwvYdY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miri Korenblit , Luca Coelho , Sasha Levin Subject: [PATCH 5.16 0626/1039] iwlwifi: acpi: fix wgds rev 3 size Date: Mon, 24 Jan 2022 19:40:15 +0100 Message-Id: <20220124184146.379991845@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miri Korenblit [ Upstream commit dc276ffd0754e94080565c10b964f3c211879fdd ] The exact size of WGDS revision 3 was calculated using the wrong parameters. Fix it. Signed-off-by: Miri Korenblit Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20211204130722.12c5b0cffe52.I7f342502f628f43a7e000189a699484bcef0f562@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/fw/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/acpi.c b/drivers/net/wireless/intel/iwlwifi/fw/acpi.c index bf431fa4fe81f..2e4590876bc33 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/acpi.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/acpi.c @@ -789,7 +789,7 @@ int iwl_sar_get_wgds_table(struct iwl_fw_runtime *fwrt) * looking up in ACPI */ if (wifi_pkg->package.count != - min_size + profile_size * num_profiles) { + hdr_size + profile_size * num_profiles) { ret = -EINVAL; goto out_free; } -- 2.34.1