Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2205514iof; Tue, 7 Jun 2022 23:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfWY4f3gww3UXAzLcWwmUruqnZHF/CtcRK4hr5bIaJqnMzNzZF/0wcIVE2mf0igSMnUeaS X-Received: by 2002:a05:6a00:124d:b0:51b:f2ac:ef8a with SMTP id u13-20020a056a00124d00b0051bf2acef8amr21773877pfi.72.1654668602757; Tue, 07 Jun 2022 23:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668602; cv=none; d=google.com; s=arc-20160816; b=xGGc7leNauvKRWxtBIdBxbRv0rh93WQOAyqaOortN6rqqpBZPrQxOx657n13ocDhdz KT3+DREZKl+ZREDgw1UNUhC/qroSKqhVP4ZPqe25s7uDtkZu4CFqY+B5EQU8p1b6s9mJ 9DMtV+K17r1JgsVZKeFsJY/4ZTgebeKykDAvkLkj3yA+9DjjcDLGFzje2sW+Ya5lIOD3 8pyxzSwG0J+nJwNVL+aqEN4HwwjkLSidJbIHDMYKV/7qLF9QE7ieT+t/Q2WD3oTQesSq n7EqcME8NN5rWoBMoyAvraXdAOAwRKakFRmQeFgNadL6lVe7ufECfTj4pvbE358SP4Ag bhZA== 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=eoh9OhCUKRlF+dJVIouiCBvjLUFYmNG06/CAGMp98LI=; b=kbrP+1o/rdNt9AECCdPUrG99UIbpju5+8Dfx5ykjpJV03OHxfHllCbeHhonRiijxHM FumwFeCRD0BBwyTcFxE6I2uKUBy2p5NFnL5NtE9yGQl2mIxvVQzdUDEwS1+1xIEn8bo0 I4Pbot9gRrNxjPwBosuV1wD2wmt27Mblz2HEbmsX4c5wbDGvXKA2PHygSzZliPVBNe7W w88Bw/MFPwGpQJ5ijJ8BRsVu2L0Itq8HjuXfQHcsTGqJOwGiHlDFIFWjiMVDITwrT0eC S6MhD95B/UmYg4hOrrsN1myg6AhZBrCHMXwREroqTxgi+w2exD8MWg5ThpcYAkvEFHm7 L4zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EeHcInzG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n1-20020a17090a9f0100b001e0cf692b8dsi31333499pjp.80.2022.06.07.23.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:10:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EeHcInzG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0ABAB41ADF2; Tue, 7 Jun 2022 22:32:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234287AbiFHBit (ORCPT + 99 others); Tue, 7 Jun 2022 21:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382044AbiFGVzg (ORCPT ); Tue, 7 Jun 2022 17:55:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA96A24B62C; Tue, 7 Jun 2022 12:13:36 -0700 (PDT) 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 C06F3B8233E; Tue, 7 Jun 2022 19:12:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CEECC385A2; Tue, 7 Jun 2022 19:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629177; bh=7xMcwb9TiKoQhDGVCSyKHR4w3KZW+4Mbltbx2mEeF3k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EeHcInzG8gWCFsvfmFqII8L7jP9EVhI1DjWCnw4C2LTIhenlevukx7L4NyylprMTv +OtCNlM8awY+xLckzDo61ZPlckO79K6GGXy8vUd4rssG/12V7HzziNpc+ab91xyMaE ez/PoUQkNfYbzdkwj2wqX9gedunDyoWIPLLBx1q0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arunachalam Ganapathy , Sudeep Holla , Sasha Levin Subject: [PATCH 5.18 598/879] firmware: arm_ffa: Fix uuid parameter to ffa_partition_probe Date: Tue, 7 Jun 2022 19:01:56 +0200 Message-Id: <20220607165020.210792995@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org From: Sudeep Holla [ Upstream commit f3c45c045e25ed52461829d2ce07954f72b6ad15 ] While we pass uuid_null intentionally to ffa_partition_probe in ffa_setup_partitions to get the count of the partitions, it must not be uuid_null in ffa_partition_info_get which is used by the ffa_drivers to fetch the specific partition info passing the UUID of the partition. Fix ffa_partition_info_get by passing the received uuid down to ffa_partition_probe so that the correct partition information is fetched. Link: https://lore.kernel.org/r/20220429113946.2087145-1-sudeep.holla@arm.com Fixes: d0c0bce83122 ("firmware: arm_ffa: Setup in-kernel users of FFA partitions") Reported-by: Arunachalam Ganapathy Signed-off-by: Sudeep Holla Signed-off-by: Sasha Levin --- drivers/firmware/arm_ffa/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c index 14f900047ac0..8fa1785afd42 100644 --- a/drivers/firmware/arm_ffa/driver.c +++ b/drivers/firmware/arm_ffa/driver.c @@ -582,7 +582,7 @@ static int ffa_partition_info_get(const char *uuid_str, return -ENODEV; } - count = ffa_partition_probe(&uuid_null, &pbuf); + count = ffa_partition_probe(&uuid, &pbuf); if (count <= 0) return -ENOENT; -- 2.35.1