Thread (91 messages) 91 messages, 8 authors, 2023-08-08

Re: [PATCH v2 20/28] net: wan: Add framer framework support

From: Andrew Lunn <andrew@lunn.ch>
Date: 2023-08-01 09:57:16
Also in: alsa-devel, linux-arm-kernel, linux-gpio, linuxppc-dev, lkml, netdev

quoted hunk ↗ jump to hunk
+int framer_pm_runtime_get(struct framer *framer)
+{
+	int ret;
+
+	if (!framer)
+		return 0;
Can framer be a NULL pointer? This sort of test often covers up
bugs. So either let it dereference the NULL pointer and opps, or
return -EINVAL.

       Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help