Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2195660iof; Tue, 7 Jun 2022 22:52:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqLVyuMRw6jW6XNa09XdUUcnAgX/wPYDwMPqMvzAGqtQ7dLEvy3UNuroJaVVG03TSULUuu X-Received: by 2002:a62:a113:0:b0:51c:1b4c:38d1 with SMTP id b19-20020a62a113000000b0051c1b4c38d1mr13710320pff.13.1654667534696; Tue, 07 Jun 2022 22:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667534; cv=none; d=google.com; s=arc-20160816; b=bH1Nx9HrO0upalq9yDqvwdC3h/HD02dGNuipO5JtFedGmWr899vMUmqSmenoCAFdvd qaMKGuUGZPmlNZiLuL99UP3qd8YmGZ6VNKYG/9gfQG/UgKJ1S1xnmTI1rV2RR8qGtJXY Lmv2o8uvD5WzA0x6/OIQtVsySO2QXO6JtDeuEJ/3EC4lnx42eJoD2qZ4LmsSXZfyXQqj ySamWBf0MLqCMlqjnk6/UszREQVzHF1x3u0Bx3D/Pr3Rlcs5Xkci74kpBzz1CsjL4dKw rxdW7VvuODo2joX0/zOQLN/5Q0XrlBAwSI/cEVGelt4oq5QZ7QyRoAHAvog+an8uVaTS PZyg== 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=LNkhWinAZxMwgF3H4R4gW150vfQwgaVt+Vod9o0NkQ0=; b=HHiL01wYDcCLvgjaGb52ZfFaaSlxKw9U3p0PdYr0PD+ZuGFFG/ik7R14rNdWUffAyq UuN6o7iTKD9v+WjLLUq0nvDpZthl/lB5moVWo/ZFHI6FiPoY2PDu/Wbd3nrU34SdwqVI 8h8wqRheVYB5+dhv7wGvIN76GZ7MSW6Ima1U2PAosUy/mgegchwhthDL+NzjLZYCVVMI jzWS3SHjq5uedflgvvtdMcFyoqijGQWNcpMb0TgW9XdPAGINb0SNAMyMiAyc6Qq7pedD cpkYimcruE0zQra5enPygeRbkum4CU9vC44DLHMcaC3bcvj+muxbfg/j9MlnFQfIRxKp RAkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gHhDvd+7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id lk14-20020a17090b33ce00b001dc21092149si18259491pjb.140.2022.06.07.22.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:52:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gHhDvd+7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 B01EF4B51DC; Tue, 7 Jun 2022 22:23:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388622AbiFHBFn (ORCPT + 99 others); Tue, 7 Jun 2022 21:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384123AbiFGVyJ (ORCPT ); Tue, 7 Jun 2022 17:54:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB0C4F8E60; Tue, 7 Jun 2022 12:13:03 -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 BF2D1B81F6D; Tue, 7 Jun 2022 19:13:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23637C385A2; Tue, 7 Jun 2022 19:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629180; bh=/Tu8r2LfOw0CLxiSZGrql0GLd6ZXzzDncyyTCP0+Lc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gHhDvd+7yuFUWMfch2ayVI20zK8G7C5YK1lgGShSHx4ma1nEMBVW+slhuMai6A326 JWvCJdDLsrh5Jv4mbmCZQ4GZc7wmG7tQpOBBOFPfZ+8ciAWPJlNoxA5Awr+Lizn0Hm 7gIptAl+nQr7qPa/cY0ECM6xH9LyB+2d5ESG/LEo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sudeep Holla , Sasha Levin Subject: [PATCH 5.18 599/879] firmware: arm_ffa: Remove incorrect assignment of driver_data Date: Tue, 7 Jun 2022 19:01:57 +0200 Message-Id: <20220607165020.238670780@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 00512d2930b338fdd42bd90bbd1793fe212c2d31 ] The ffa core driver currently assigns its own driver information to individual ffa device driver_data which is wrong. Firstly, it leaks this core driver information to individual ffa_device and hence to ffa_driver. Secondly the ffa_device driver_data is for use by individual ffa_driver and not for this core driver managing all those devices. Link: https://lore.kernel.org/r/20220429113946.2087145-2-sudeep.holla@arm.com Fixes: d0c0bce83122 ("firmware: arm_ffa: Setup in-kernel users of FFA partitions") Signed-off-by: Sudeep Holla Signed-off-by: Sasha Levin --- drivers/firmware/arm_ffa/driver.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c index 8fa1785afd42..44300dbcc643 100644 --- a/drivers/firmware/arm_ffa/driver.c +++ b/drivers/firmware/arm_ffa/driver.c @@ -688,8 +688,6 @@ static void ffa_setup_partitions(void) __func__, tpbuf->id); continue; } - - ffa_dev_set_drvdata(ffa_dev, drv_info); } kfree(pbuf); } -- 2.35.1