Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5144031rwe; Tue, 18 Apr 2023 02:42:10 -0700 (PDT) X-Google-Smtp-Source: AKy350bHpTcZrLCb38Cj8FkJj+nt2xxK3ZgHsEen0KIP+TJAp69NEktqpx3LphkgU9xLjPOXCySZ X-Received: by 2002:a05:6a20:4282:b0:f0:916:e5d with SMTP id o2-20020a056a20428200b000f009160e5dmr7197282pzj.42.1681810930658; Tue, 18 Apr 2023 02:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681810930; cv=none; d=google.com; s=arc-20160816; b=Sb7hF2OlE2g05mnDdq+koTCusc7hxke+l7SvxBR6ees7OSwwCxOHhrSnRm9gD0wrDe +5wuVQKx/s7B8Ho0WV4/Uzj5ZBymSVVk9qKCfhdid17EBGkNiLgfFs7F4SbLC6TPWtv5 ctt2v0Q6QXF2TLV6XPz9dqRTjbJKHFZg9e4teihDYTELkvZV6w48wOeLB6EvOTD8AJx9 qk+DNiGnEaYsOM48f84/UtbOFvpquxF/tcX7xwLlrX4eQMoAMvigHiYJlLBZw5w3Wyt7 x854dR5bgl1NyUMoy9x3uPsIehhqpGugCQhstBvED7rkmmAfxjBAH7Bv+tqo4fpewI5X fxIw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J90UqO94LQ/kNvZpghPU+bGC4IwA/l9Zuk2koDv8dzY=; b=QRcxkTprCqu7KLI2/QGQEr5+/+inkFqbhKc61jXc5JwoQle8751w4pV5fcxcp1pyZg W/CNt/fGbBxAyo7HWkLL0wpWXDC5kUjmjXF7I7hsI1k/MwJzZx6XmEHjvE+0csK18apy kK0h7B/FZ4ujJSDUsR92+wFExEODwI20qwUOyz1SH9LGl6JqLpBHLR7iESxjX8WYfavv JAGSoxbSpgyrrF5UR5m04WgP/+TGy+SzyZdiRtfZwlJ6K5U8oXkW6IkBQgS7EecWwSNs N6inILtBhIrgbBYAdbleWvl04ilLPuvyaOv7lpiA7wADPiLbc8vgFRTBFx4hewz5ghbk ID+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LfCtFX6J; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020a63ff51000000b0051322a8d2aesi13504073pgk.110.2023.04.18.02.42.01; Tue, 18 Apr 2023 02:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LfCtFX6J; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231314AbjDRJ2h (ORCPT + 63 others); Tue, 18 Apr 2023 05:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbjDRJ2f (ORCPT ); Tue, 18 Apr 2023 05:28:35 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CDB955BA for ; Tue, 18 Apr 2023 02:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681810115; x=1713346115; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nOHVg9jCKXv2tysO5X3cSkUQYQOpu/kVBGIK+QQ2l0M=; b=LfCtFX6JzLouPAaE/B8G9xxdKbuIYO/2Po0EXOqnk5r9gaTI0Z2RWmEj /paczRRfiZKfRZb3XHAFMK68tolYO5hTr1Avhzoq8slUWUm83ZKIm5r41 DI3PVRL3uiJ/oUszYydHvr1Zi0Q9EeMa1z9UU4XhqgkilxENX6ffhRyBG Kwu/zsOM9PZsJq7Wm+wytg6FSD77mVnN6FdjZeMLC0NENdhY0bDJG5AJp R9+/WgfxgKP3y5u6JRGWO1S3SbXjq7fhFYmtU2PuVmGmj140/X0tEDO3F 05VSb6QaO0WdPzdyfFealWPu/Nsc5PispKyx03qc1/mQ6rGH18OibU4A4 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="410341170" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="410341170" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 02:28:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="684511216" X-IronPort-AV: E=Sophos;i="5.99,206,1677571200"; d="scan'208";a="684511216" Received: from kadanh-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.234.12]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 02:28:33 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Alon Giladi , Gregory Greenman Subject: [PATCH 04/11] wifi: iwlwifi: fw: fix argument to efi.get_variable Date: Tue, 18 Apr 2023 12:28:07 +0300 Message-Id: <20230418122405.aaa6d8874442.I734841c71aad9564cb22c50f2737aaff489fadaf@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230418092814.1438734-1-gregory.greenman@intel.com> References: <20230418092814.1438734-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Alon Giladi We should pass the newly allocated data to fill. Signed-off-by: Alon Giladi Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/fw/uefi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/uefi.c b/drivers/net/wireless/intel/iwlwifi/fw/uefi.c index 0b6f694cf30d..01afea33c38c 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/uefi.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/uefi.c @@ -222,7 +222,7 @@ void *iwl_uefi_get_reduced_power(struct iwl_trans *trans, size_t *len) return ERR_PTR(-ENOMEM); status = efi.get_variable(IWL_UEFI_REDUCED_POWER_NAME, &IWL_EFI_VAR_GUID, - NULL, &package_size, data); + NULL, &package_size, package); if (status != EFI_SUCCESS) { IWL_DEBUG_FW(trans, "Reduced Power UEFI variable not found 0x%lx (len %lu)\n", -- 2.38.1