Message ID | 20241001162608.224039-1-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65431CEACE7 for <linux-i3c@archiver.kernel.org>; Tue, 1 Oct 2024 16:26:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=teu5DccDRtGhpmZQgg4Deu15yi1YnsFa+Dvd5zws8ZE=; b=idrQf0qkxSkwVC uUWhhWk9cwW6VriQfbowdHU0u4F1x1LApqBmBJ33+Kk4JFOHprCaqrU3OcPSp8EOQrn9hCnuNjP3w 2Zi8KYO2rcmi9FmprlV7Eq7yPi8ZWI4h5WhHivvaXrfxZIdJam/aoHx0HpYYFqWXiwFMVGdLUJim1 rjCF0eBW5pzUA9sI6C6CHTn5b0au/WrVTJqPp6toO3aXbip02ehpD5PsXgqh4DQmYo1IcoIy4ovkT ILz3b9V9C0mkrqSn7+03WT3CXynCNGcgfz3X5CR7r1LqSFAeitmMNwXD9eXY7qHeWLK0O7LjT543j X46RaEks1+BS+C4Yp+kA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svfhi-00000003YTg-0WP8; Tue, 01 Oct 2024 16:26:26 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svfhf-00000003YRv-00uQ for linux-i3c@lists.infradead.org; Tue, 01 Oct 2024 16:26:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xFu8T7hCLUyJEok+O7Aw7DNhcSYS9LZRLWZAx1qsLDZSrxHB7WAfDbJ8oER2DcVEJ4UnJZ4gOTTrugAC9lom5+GYi+L0Yk73BkSIcBqtgq5hxLbrO7JPUi0WYVkoVJPSj8ijauFzy127CUdPQtuyjG5YiIZ0/gpXYPkjKO6V4ZFjfGCrdcAqRdCIcRjUGkCgKYMRXgveX/YYth9QtkoyVV3cTiE+h1xO2ILZvVl4nKEB4gQ73eDp8OJVwWDgnSCjtadpY6+l/HyUVIqqk3nQ2vATIXqXdLaoTmXen03+Ncql0E5o2uv93cdle/QibPBQZmegQvLMZ0oapopBZMWfzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2zOhi1i9xNtOysc9UcYMjdQsx+v5iz322y/GzD9a8xM=; b=RW8iMikkVLsob9feB6NVyjlQ+aGzZ0Cv0LMMleFh3MSeRdQcCd2klAdkSutn2QP4wDsl1Y3PKj3fvWuXuCYranL0ysNMl2nksNg+35D+FXKZ9pb9hN5Qhp4326R80U05oEF3aewpu0xQ7YvziCylYcZNwBXbC6OiemHQw5fRhX27DIvrjpo+rpm3xRUfJKWXuS5LaRdpmctlPKUd9gjVdmh9iejE1ZWA5n2VDOubtCqROI6dDZB2rtp6ivM7lj1d3pgB/gShGZP3unW5AeywmzH9FYWmQxEOmNM/J2i7Iglsxw/B0o1ruXIKpR6EWkU2PTlf2gnikBVfa2YLfzytAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2zOhi1i9xNtOysc9UcYMjdQsx+v5iz322y/GzD9a8xM=; b=Z+hbN+t0JBJJ7uDKIIe+yS8GPE3OoHZo/ri9oej080fFv3AB4Dl5dAzwmVh9PwBDq07zHjZsoPUszoHpQWbZZCfuuehfFWgmY2qMaMQItq4Aw775DHLot3xeVr6eb6Bu4VKWqLIMCgoGbPneSdbmgaIynVdS08+6BOnoc3rKn5VuUvimJhpvhTqxOUmYhlxc7ZIDlvXI5ezzTieJLh2jARSY8nOpOQS1Spqt9UOLCM2K7fCvRQpZGj0gv+X9/BhRz/OR+lf/yJhBPCZr3uoojKM5CJ0bbI8GWkKN4e8yZPmaBLqSIxu8aJCCYgWb/ef8M/D1qG5he1dBvpkbQK++Ag== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS1PR04MB9432.eurprd04.prod.outlook.com (2603:10a6:20b:4d8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Tue, 1 Oct 2024 16:26:19 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8005.024; Tue, 1 Oct 2024 16:26:19 +0000 From: Frank Li <Frank.Li@nxp.com> To: miquel.raynal@bootlin.com Cc: Frank.li@nxp.com, alexandre.belloni@bootlin.com, arnd@arndb.de, bbrezillon@kernel.org, boris.brezillon@collabora.com, conor.culhane@silvaco.com, gregkh@linuxfoundation.org, imx@lists.linux.dev, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, pthombar@cadence.com, ravindra.yashvant.shinde@nxp.com, stable@kernel.org Subject: [PATCH v5 1/1] i3c: master: Fix miss free init_dyn_addr at i3c_master_put_i3c_addrs() Date: Tue, 1 Oct 2024 12:26:08 -0400 Message-Id: <20241001162608.224039-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SA0PR11CA0130.namprd11.prod.outlook.com (2603:10b6:806:131::15) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS1PR04MB9432:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b282b4e-a4b4-4e1d-d4dd-08dce235c7ea X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 5V17XrMmQD0QsAHv8smMIkHPahd5xy+RKd7c6xGwNzbIM5biPEdgpMELfZk7Rte/iiFzpuGUjgf9xRjOT5A+Ad82aCiEvtuvvA8ZRBw7ShW7zqJ+pduMReLrsPzfF2bCN/ViZOden1fLslzNJRdR9wqR9AxEB00gEmZnBK7vEB60QHhg06J1fyiERYUM6ZioOcx2P0T7d/VqwdQ5Dy7L786fYqXwQyYCp/tSnKiSfXdeXHPA6d+Gk1sKBgdztGJ7/5lS+I/mOOZiQ79ZUg6JC9Y4NEyKoTTDo0nNX7vsm1777plX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CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vmr4NuY9HuBp2KfDOOZ2uNp3ry+Evqu3lEFD8G4YvWl9DYj9wEiibQ9KGKRzSPbC10MwO6OrbF0YiIPM5hEAe6wgVV++KfgsrpYAVSy9PsLtgGqu5qfntnaqJJHVUkp1Y9/V+yPgLxpvv7JS9+Q/MDILVkLbKndWRPLPOKbU9VxnTPNIPactp27D2tmUIGQKcXDRICjLtPBnatg8l2V8ngo4pNYbgZa3Ub+QtvIJErxW2eXS8IKnsPVSksn+MtodJKQcC2/g0w17tIAUhxfHRXxCxlqilh03aZCRlngPRMPQCjQ8ZUYt+eZ1SBf7EAvb5VRyFaoI6QlbOfogZ9TITo+JI3IxbKG+CzP2TSLulBnILSxQunPzxrXX59UH3pPTqHf/bmDxrZmZuZtMSP05eizGyKdXVlaev3v+1o6mksmlkVejP4c5R2csddU5VLLonPgnNMIOeQMHUqL0Ye4RXjPTF1TMmSrl0GEAn1IRX1uG46r3+R57ga7x6AmAbW4rlXMLSiygLaEOn/f7iieG5A2vFkbtp/ovtYMFSELRZTDnUpVx4hP94vH/EZJxghB+tG2uLJntCd+ZaEH98jeqF5Nc2zL4S3CkFHJhYRlC5nG35VpECXK1rEj8Xqev6i9uPaGxfoMXfl1XozZX1lTSxxXeeiw8Qr/4QM3p/64sZlXdoZn832QCt41SaKGy8Y9/lbA8KxrqilxSYsqdL6pssBAmRHcFDFyvbCAQB+R/7u/tri2t/B65GirtKV+GlhlbWBfZ3Kuv8Hj2yvckCpRQN9ytpl2SMTkke/KsmmPlA57TWC0KRbGavxOcNopKdTdHAsyS4pR1zcsI8QF6UtWreF+Z5e3N8oWEH05FspWz2SBPRAIF0a0O+iGfxFU6afeMBkv+JwiOvD5YCngS9VVzmn8DhGUq3yFh07ZnIjuGPdgDBfD9mG8x91C6YMr/VGIE6vMcl6J39Xfl5Z3m+Jt/KCQ6zzMP6U9MhlVgCXpBKTxpXC30+fWBAnW+ntiWTuE67AujN2ndXfIzJV7mWQpWo9WFZeHnveUzF1DXbKYjKKo6v+9jtVBJWiT8GxQOgdGgz3PtH4IdFPH0g9VHhZxHgcAOJQTs/Kd1+a6fbMXfPOzUpBgsjU00Cu5Tf4HndUZQeOriNISA1vdu+VNtmMY0pdLguMHnqlAzp+ZHzI6lDKVJCCWliNW3exi6666hmseq7KABZsjttV2bhNZ2f1O8BAnt9ViVEbXjRIHhNHowXi/W+ftLr/kqU77kfxDkqnX2G8kP9WRdBJ3cvJMpcPHaJxs2sZivTQQ+mvUZ3TsUc4O2Pbyuk4eZFVvFXYJouroTsnumNG6Hk9Lw3sGxumHvnAxlb9hEo/vpLUNJp6h0IIb98PR7bu3mDi65MOGLjbz03E5KElYf20XeTdLEFLCLgX9e2iNMRoua1mkeu1g9qdvqPqXHTYvLsBmu+YxIT3EHMhulHlM0lrx/4J8rezavLTQVIz5lXIjDjwDZNd1uHViaQzvkDu3mfoWN8QX6XO2ZEK+nceDWem1IDf2VHuMcdIEE2KXMl03IVetZy25y2qY= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b282b4e-a4b4-4e1d-d4dd-08dce235c7ea X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 16:26:19.7309 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dUeov5qVmgU9dtTbMg3L7wSNbnIhGMiXfURyS7rVvX4DEOY9oi0RKUZrZLFT+NLLhacUNXLMbGHUkGgDGUsKCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9432 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_092623_065587_FD019FF4 X-CRM114-Status: GOOD ( 10.86 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-i3c.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-i3c>, <mailto:linux-i3c-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-i3c/> List-Post: <mailto:linux-i3c@lists.infradead.org> List-Help: <mailto:linux-i3c-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-i3c>, <mailto:linux-i3c-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-i3c" <linux-i3c-bounces@lists.infradead.org> Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org |
Series |
[v5,1/1] i3c: master: Fix miss free init_dyn_addr at i3c_master_put_i3c_addrs()
|
expand
|
On Tue, 01 Oct 2024 12:26:08 -0400, Frank Li wrote: > if (dev->boardinfo && dev->boardinfo->init_dyn_addr) > ^^^ here check "init_dyn_addr" > i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, ...) > ^^^^ > free "dyn_addr" > Fix copy/paste error "dyn_addr" by replacing it with "init_dyn_addr". > > [...] Applied, thanks! [1/1] i3c: master: Fix miss free init_dyn_addr at i3c_master_put_i3c_addrs() https://git.kernel.org/abelloni/c/3082990592f7 Best regards,
diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 82f031928e413..402a71313985f 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -1417,7 +1417,7 @@ static void i3c_master_put_i3c_addrs(struct i3c_dev_desc *dev) I3C_ADDR_SLOT_FREE); if (dev->boardinfo && dev->boardinfo->init_dyn_addr) - i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, + i3c_bus_set_addr_slot_status(&master->bus, dev->boardinfo->init_dyn_addr, I3C_ADDR_SLOT_FREE); }