Thread (23 messages) 23 messages, 3 authors, 2023-07-26

Re: [PATCH v2 05/11] firewall: introduce stm32_firewall framework

From: Gatien CHEVALLIER <gatien.chevallier@foss.st.com>
Date: 2023-07-26 10:40:10
Also in: alsa-devel, dmaengine, linux-crypto, linux-devicetree, linux-i2c, linux-iio, linux-media, linux-mmc, linux-phy, linux-serial, linux-spi, linux-usb, lkml


On 7/26/23 12:22, Simon Horman wrote:
On Tue, Jul 25, 2023 at 06:40:58PM +0200, Gatien Chevallier wrote:

...
quoted
diff --git a/drivers/bus/stm32_firewall.c b/drivers/bus/stm32_firewall.c
...
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help