Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp819846rwb; Wed, 26 Jul 2023 03:30:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGENRhx6NbddqcmVJ1I5FKJFHfCRwnOowEQjFZ2aX1jkw0wz0tLef9Tb7JUesvZhBD8/Ipk X-Received: by 2002:aa7:8894:0:b0:66a:6339:e8f9 with SMTP id z20-20020aa78894000000b0066a6339e8f9mr1736709pfe.0.1690367438592; Wed, 26 Jul 2023 03:30:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690367438; cv=pass; d=google.com; s=arc-20160816; b=qEgnDZWMtqeLIanZbgxRmpQwr7EJXCZ04JTrGGztWJg0V2rXyyiWZgWG6CwlNB7w8L jL5ZYT/7xewLFwCeEgkITAQPlryV7X4N2frj0XxjWHWpsShUm5TiACzr66HA4/UpXy07 thtTtLYl6X4TqRwXjTypV/XLvntAIVT6j5vWpeLzGnQmhqnYQdVq3/mfle13V74rk5Hv M8ZaEoK1dTDC5+p4YgEGmkxhRstit757DqYaWIXWp62lKkIzAm2v647mvW1KXluHQkhx a0JLFppMiKT0bqk4vQ63f5SEjT+27L58nqZJCRJ5qmvDeTUzdsu4WWFGjP8ZnPR9CBbo MEMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GlKAvKBJ6Zu1DJbtGkdno2FuJG2yLtkD7FFG7VtyokA=; fh=qrlSWlHfBcLYARmjw2ymrweeLdGPKSfOeLwaI3i/6A8=; b=WaRORHuwmwmAhDaAt+b+UnIjNnH/IDMSyuyeW6LxmEuUN9ahHEuYcKz5QVBwezrAwz /vWgPoRpKG1RHyRUn5x5gIIvpzZhxHZdSePppxbA/nTfvNUdHp3ne5atunjBRdB7FPp1 vxzh7gMBXMhLzBQ7/iGDakSDBpG/1lB64AKDRq9pxsOoXvwzXjyQ4fnJtUrwaypMj0jB iydzf0JvmFPS5D9aW67Ir5vAQ3VotoGIEnbFTLgTjkSwM+12P9bxwaa6vOy8N013KI0D u7WAwMaSuQ52+GsJoX3cccOoHXJTgi0St/WiHvKD3wawx8b9XbTavnOZ0j3ymOjd7EhC 7Z1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=bZcAe3+g; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w133-20020a627b8b000000b00682a8dfe64esi12223772pfc.301.2023.07.26.03.30.24; Wed, 26 Jul 2023 03:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=bZcAe3+g; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232085AbjGZKW1 (ORCPT + 99 others); Wed, 26 Jul 2023 06:22:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjGZKW0 (ORCPT ); Wed, 26 Jul 2023 06:22:26 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C6AF1995; Wed, 26 Jul 2023 03:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LIFtW7p5NneMA7/nwVeSiqn3z+HdxwnXGuB0xHU4fC4d3Y1PKKee8mUSWdiUMEAFQoCjU73MRJXcGngs6lhB/WEKPGdV8y5zmymGOVvPGujkIMqIEhpnfMgn4lvU6koH8LZHnxluPOBa0wzcMQHiIV4zTeIYnMm5USaD/hi8DZv/9v3J9WlJQzO5L32DUbGOY8Kv6O8QNIR20KAwLwxwZ+PqbeJKfECjW+xLInwscvvTvv4xEHPbO7uKwczrv5i6BZAE8O7Ql/v9Q3GutkBx15MAho4Pj/8+W/HVOKsmQG+EBAyPrgAsgxsQfmUNcVcxm6wsHoSwQpnmHqopQb0KgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=GlKAvKBJ6Zu1DJbtGkdno2FuJG2yLtkD7FFG7VtyokA=; b=IBeT+UbM/sh0hMjpHFPtLuuX5aSYnFfDYLnAIb9i+AEUqMdPsUWs7oXrbocol77sXVoIhY249fG7X98yoCjv0vJ8LC0LLVABEOr5zFjIGwYKOsT0KwsAD9+yQWOdAE9yfprvasZqi44F8F4tZjbyP+ZtpysWQik3pTJwEPGJDi4T52n382j1tAmzbKxcU4rB0+dyIqUHCimhLAujMbdbbd/DuTYmCP8022As4r5qN7++i9oWzqidOqgxY1yfU3GkSRReHtyBgtLr4LkhBopKb1qxlUABv8NfT8GJNn2yZ5yEZw2jCC7x46v52YbdwBVdLXpl0/Euln5+BuiC6GmN9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GlKAvKBJ6Zu1DJbtGkdno2FuJG2yLtkD7FFG7VtyokA=; b=bZcAe3+gwR7qqLqHPot6JR5gfnk5IVmEoBNTsuUvBdRI5WOkDErIj7qh5NUHAzqeXdV7GzO0/wBPNpUg3/dAZlf2z2Ubag7PLrXBfHYGX3z8466AANOFy4bX3hMzWDV+RJSoQ6EmxeBg7iBGdLdIK4xx2z3+aPOMNip9f0Y1u8Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by CO1PR13MB4840.namprd13.prod.outlook.com (2603:10b6:303:f6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Wed, 26 Jul 2023 10:22:23 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::fde7:9821:f2d9:101d]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::fde7:9821:f2d9:101d%7]) with mapi id 15.20.6609.032; Wed, 26 Jul 2023 10:22:23 +0000 Date: Wed, 26 Jul 2023 12:22:12 +0200 From: Simon Horman To: Gatien Chevallier Cc: Oleksii_Moisieiev@epam.com, gregkh@linuxfoundation.org, herbert@gondor.apana.org.au, davem@davemloft.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alexandre.torgue@foss.st.com, vkoul@kernel.org, jic23@kernel.org, olivier.moysan@foss.st.com, arnaud.pouliquen@foss.st.com, mchehab@kernel.org, fabrice.gasnier@foss.st.com, andi.shyti@kernel.org, ulf.hansson@linaro.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, hugues.fruchet@foss.st.com, lee@kernel.org, will@kernel.org, catalin.marinas@arm.com, arnd@kernel.org, richardcochran@gmail.com, Frank Rowand , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, alsa-devel@alsa-project.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-phy@lists.infradead.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v2 05/11] firewall: introduce stm32_firewall framework Message-ID: References: <20230725164104.273965-1-gatien.chevallier@foss.st.com> <20230725164104.273965-6-gatien.chevallier@foss.st.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725164104.273965-6-gatien.chevallier@foss.st.com> X-ClientProxiedBy: AM0PR04CA0040.eurprd04.prod.outlook.com (2603:10a6:208:1::17) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|CO1PR13MB4840:EE_ X-MS-Office365-Filtering-Correlation-Id: 6bc01507-a6b8-42b4-4e80-08db8dc233c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pTSGKGSWD904YY11SLaR0Cg3LbsXcdHKOlWv40vhhIqen8/F06Y1B5SvhQZn8gcU0fqpqpsCSRWDFCvtPl9qp6TLRArlBuBk5NAft/MF+lfT30QmMPUWBwHmwVpghoWV9xqLYE1vN5j/TGVB5e24UUeKXgH59GIOuDfHf3fh6N7Wx1apmq4AM8EKgRW/ya02TuL7R/TKq0+TDkwuFuDgtlgNmPMQEDbyKQ6JdK6R0AWa9dfmz+Ura/9vb5lPT7JzKu5p8A9wEnHnDmsjNMRqY+IXo7HX/M9NLEfLTU/kju0zV7K55dKp5ok8msjKgmKc7YadJF+TtfO55hSxE8/YPoNZzFCs8IncVu9xRoEPlZPbSfHV6ODIzRuIZcHJ8U6l4lBJozl7KUtXNpsqUAVboBMCICrWrjzbrA0Z6XQ7RxlgfUIov2qe29OYC43+ZulEGxITh9F/uBNLw334giDPBGxhDnZIpVXAzJYv9T6mau7TXuSD4SZoIR1RDH17GtEoQXRXKM41dE/mqorzmUQVSFyHa7GAJLS3etvIQSMkhDFEXHh8SGiowO3pKO/bdcNzlVMP5Y1ZRK18L+wGkNk6zFJ8TdEMWRS/hEypyqtxSvo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39850400004)(366004)(376002)(346002)(396003)(136003)(451199021)(6666004)(6486002)(478600001)(6506007)(6512007)(6916009)(66476007)(4326008)(66556008)(66946007)(186003)(2616005)(38100700002)(44832011)(5660300002)(7406005)(7416002)(8936002)(8676002)(2906002)(4744005)(316002)(41300700001)(86362001)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?p4dhcp7ceHRMf9PxLP7UKVmzkTGc43zOFzIfwC2eB0YKk2CBEclCXiiYx7wc?= =?us-ascii?Q?oSP6k0m3zGOuAfpBms/D7bcEuyKA8HdAAdHPXEnWG09oLmqpcal/93EA7edR?= =?us-ascii?Q?T4LjL70cjR83snnbD++RSu+fDwJMHQNdf38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?= =?us-ascii?Q?z/mZ/3TYOprMDcSn1exqjYq5ggW50NrKAELXcafUAftxcujUvuAjSANNE9Lv?= =?us-ascii?Q?RxY2jm/ERQrct0iVFKPlLdT5xX/fvd2lyi9wbAq3t1fwIOHBduuEKy4rtKMn?= =?us-ascii?Q?GPYoNwyZ9G0j6oX9Uepg1aWPXn3OKg+J4CXZc3goFclbaN/+3S5NFtrq0PB4?= =?us-ascii?Q?1SWGnemlv14IxQgAs0W0mmhn5mtzTn6G51BFRXTD3fiWYI4iaqdZu2rNExBU?= =?us-ascii?Q?WAf8KdZoDiOS7lS1W4sfjgYtr5fixj/egOb8lnSsMr8ImRfq+sQrnYC6oXqv?= =?us-ascii?Q?oPV6+FtuVoRxqkcpCfOFDi+rdBmgatQvDU4PiwNLPBi1girWkmBMtLCAraO/?= =?us-ascii?Q?BSsm+q9ycQOKUNZaCfi6j7dqkrv0asixPmQ+4xm+9gX1cfEAIOq+ugNDR1UH?= =?us-ascii?Q?ScGObKZjHwZPHEVxqX3EnVpCKUjKH3ruoK8BdhxurUs3UQeAoyqBQe2iFQ7A?= =?us-ascii?Q?k21ifWfKlM+dnu15PIYUiyE3GdQqGtD7h25jidYDyY+7cRKfXz2gpuUecx49?= =?us-ascii?Q?fNAzaGQjuOOxQAEQvIDj7weMoX9aDQs+L2xBWZM12HRySHiTHRwRAyWZ6q2t?= =?us-ascii?Q?rz4kCfoP6FGCARnCXwcwTfnSx7GNO2zsU/xjQtIthyu1DednUOIIcBe+YRSa?= =?us-ascii?Q?dO9W7g=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6bc01507-a6b8-42b4-4e80-08db8dc233c9 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2023 10:22:23.6707 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 85f4MKcsU35zyTU6yCfRjheQIZ5KfV20YFbpawl8e9rEALD1U4SpjwR/z8XrM4BTMc8GG68BHYFnVXxyjzuNNIrIsJxxDpfGfQmdRv4Qw0c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR13MB4840 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-crypto@vger.kernel.org On Tue, Jul 25, 2023 at 06:40:58PM +0200, Gatien Chevallier wrote: ... > diff --git a/drivers/bus/stm32_firewall.c b/drivers/bus/stm32_firewall.c ... > +int stm32_firewall_controller_register(struct stm32_firewall_controller *firewall_controller) > +{ > + struct stm32_firewall_controller *ctrl; > + > + pr_info("Registering %s firewall controller\n", firewall_controller->name); > + > + if (!firewall_controller) > + return -ENODEV; HI Gatien, Sorry, one more on this patch, that I missed before sending my previous email. firewall_controller is checked for NULL here. But it is already dereferenced on the line above the check. Flagged by Smatch. ...