Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp829700rwb; Wed, 26 Jul 2023 03:41:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHOKxlY1NsdLKP3quIw1sgWQYCOeLSlpR/1cT05NlH5Ho2rbXGYuG7aQTZHK2dEsXVZyhGh X-Received: by 2002:a17:906:104e:b0:98e:2b01:ab97 with SMTP id j14-20020a170906104e00b0098e2b01ab97mr1266774ejj.68.1690368108791; Wed, 26 Jul 2023 03:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690368108; cv=none; d=google.com; s=arc-20160816; b=C/euA27Aatka0lZfz+xY284f8dwADSmDILOjlinIrIwI8VX9pBAUgKN4CmddrTqD43 51HCk8jQM1MOKUIecLTq229Utkt7e1hOFA89v/ODNaWLzFjaukq3pHGMCg38pZ94Cd6O oiJz0joYiRU+pFV56rPgXPM98bPRXqy6FeOaBRum3mwUfttKaL0/omoXEVNe+KDPyGeV LW18lZ1YmagecUIItBZReqc57T3KntCuevKJstG6L+vmzEB/numeN3j3KO7/D8yNUc49 bVbFmOdG545mvVr+uN0yQQvtoCluxxK6a1ahpArqiDjDcnQsSZHEim9IaIBUHgZBuPk+ UA/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=W8GLfB17+jUE7Nw68o8tScgzzDDgHpp5NKWkRxESZlI=; fh=rJvLoUSasvm6KaIaWGr2fzuXr5DO5skQwvzoXMICdS0=; b=aPuMf9uFUjWR/mqbzRZgQ9B0+pIff2wsYtH5cLIr/Anod8r9GDQ75gIhgRt4n92527 9bcQ05JZEWdZEk04VDh5rMMd/8Ude0GblQkVuGAVfZub+TNPmUN6GI41E7QX8PGlWp6j EkRGQz/IZkhf86uJA1xHLe7Qu11CD5OrhJdVocTXd2ds+ZwHBJPifS04K4/gImMss5Un /32xiQt6bhSpGiveyAN5Z32q8Xi7fzbAHrVLvuxyHGd77yv+fytKX598hp5ac9Nmpdz6 H1B0Vc3Oi6DfHRNYqcrhL3Zvsscr2AijyxhgoXIqR2Q5djIwsowaVb8u9ZGmAfbRaK8r FbXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=qLRE5+Km; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x21-20020a1709065ad500b0098ce5bd2ed0si9392047ejs.257.2023.07.26.03.41.24; Wed, 26 Jul 2023 03:41:48 -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=@foss.st.com header.s=selector1 header.b=qLRE5+Km; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233911AbjGZKkF (ORCPT + 99 others); Wed, 26 Jul 2023 06:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbjGZKkE (ORCPT ); Wed, 26 Jul 2023 06:40:04 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC511BCB; Wed, 26 Jul 2023 03:40:03 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36Q7VZaZ007966; Wed, 26 Jul 2023 12:39:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=W8GLfB17+jUE7Nw68o8tScgzzDDgHpp5NKWkRxESZlI=; b=qLRE5+KmvbKk5B/UW10nGEjBoDKipiB1flNkgDwSQYqmZMZdBpctbst7Vwt4EUF87UAQ lGs1OpG9iWa7NPx/eqb8ySrQnjHJTDAhdOqjGv8LVHdxJLHd4/JhOqgzW88/jAn5GpJe /9sWA3Z+uL0eH5JViXAbOVXN00Amp02Tix6WttAS9w4R9wAmpstvy5KIJGiwDfWDgPWe 7Ll7vUdK2tWD46wDK1zTVYHE+KrDhr1nsi10XJw0x7tkd+qwL727Kpu0HqUADsa0lQkG 4pxFNpRPxpJfDasvoPH+WokzK6DrXEtEA/wNoEISShjpOySH6a8QFdhtHwnQ+A4I7C3/ 6g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3s2y641c6j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 12:39:37 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C13A210002A; Wed, 26 Jul 2023 12:39:36 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B6D7C21787E; Wed, 26 Jul 2023 12:39:36 +0200 (CEST) Received: from [10.201.21.121] (10.201.21.121) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 26 Jul 2023 12:39:34 +0200 Message-ID: <9f34d34b-911a-c064-9e44-34e030b76786@foss.st.com> Date: Wed, 26 Jul 2023 12:39:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 05/11] firewall: introduce stm32_firewall framework Content-Language: en-US To: Simon Horman CC: , , , , , , , , , , , , , , , , , , , , , , , , , Frank Rowand , , , , , , , , , , , , , , , , References: <20230725164104.273965-1-gatien.chevallier@foss.st.com> <20230725164104.273965-6-gatien.chevallier@foss.st.com> From: Gatien CHEVALLIER In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.21.121] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_04,2023-07-25_01,2023-05-22_02 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,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-crypto@vger.kernel.org On 7/26/23 12:22, Simon Horman wrote: > 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. > > ... Indeed, thank you. I will change this for V4 Best regards, Gatien