]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.drivers/bnx2x-Missing-brackets.patch
Add a patch to fix Intel E100 wake-on-lan problems.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / bnx2x-Missing-brackets.patch
1 From f5ba6772f226be0266f95642c8162493246d3b79 Mon Sep 17 00:00:00 2001
2 From: Eilon Greenstein <eilong@broadcom.com>
3 Date: Wed, 14 Jan 2009 21:29:18 -0800
4 Subject: bnx2x: Missing brackets
5 Acked-by: Karsten Keil <kkeil@novell.com>
6 Reference: bnc#472500
7
8 Calculation bug due to missing brackets
9
10 Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 ---
13 drivers/net/bnx2x_main.c | 2 +-
14 1 files changed, 1 insertions(+), 1 deletions(-)
15
16 Index: linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c
17 ===================================================================
18 --- linux-2.6.27-bnx2x_2.orig/drivers/net/bnx2x_main.c
19 +++ linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c
20 @@ -2923,7 +2923,7 @@ static irqreturn_t bnx2x_msix_sp_int(int
21 #define ADD_64(s_hi, a_hi, s_lo, a_lo) \
22 do { \
23 s_lo += a_lo; \
24 - s_hi += a_hi + (s_lo < a_lo) ? 1 : 0; \
25 + s_hi += a_hi + ((s_lo < a_lo) ? 1 : 0); \
26 } while (0)
27
28 /* difference = minuend - subtrahend */