lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 17 Dec 2007 22:55:16 +0100
From:	Roel Kluin <>
Subject: [PATCH drivers/net/skfp/h/fplustm.h] parentheses around RX_FIFO_SPACE

#define RX_FIFO_SPACE           0x4000 - RX_FIFO_OFF

                smc->hw.fp.fifo.rx1_fifo_size = RX_FIFO_SPACE *
                smc->hw.fp.fifo.rx2_fifo_size = RX_FIFO_SPACE *

Add parentheses to definition to prevent operator precedence errors

Signed-off-by: Roel Kluin <>
diff --git a/drivers/net/skfp/h/fplustm.h b/drivers/net/skfp/h/fplustm.h
index 98bbf65..588579c 100644
--- a/drivers/net/skfp/h/fplustm.h
+++ b/drivers/net/skfp/h/fplustm.h
@@ -126,7 +126,7 @@ struct s_smt_rx_queue {
 #define	SYNC_TRAFFIC_ON		0x2
 /* big FIFO memory */
-#define	RX_FIFO_SPACE		0x4000 - RX_FIFO_OFF
+#define	RX_FIFO_SPACE		(0x4000 - RX_FIFO_OFF)
 #define	TX_FIFO_SPACE		0x4000
 #define	TX_SMALL_FIFO		0x0900
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists