⬢ DragonFlyBSD Kernel Audit
DF-3580 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/netif/iwn/if_iwn.c
+++ b/sys/dev/netif/iwn/if_iwn.c
@@ -5154,7 +5154,7 @@ iwn_cdev_ioctl(struct dev_ioctl_args *ap)
 
 	rc = caps_priv_check((td ? td->td_ucred : NULL),
 			     SYSCAP_NODRIVER | __SYSCAP_NULLCRED);
 	if (rc != 0)
-		return (0);
+		return (rc);
 
 	switch (cmd) {