[PATCH 2.6 2/8] infiniband/hw/nes/nes_verbs.c: fix off-by-one

2008-02-21 Thread gstreiff
From: Adrian Bunk <[EMAIL PROTECTED]> This patch fixes an off-by-one spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: Glenn Streiff <[EMAIL PROTECTED]> --- drivers/infiniband/hw/nes/nes_verbs.c |2 +- 1 files changed, 1 insertions(+), 1 deletion

[PATCH 2.6 1/8] infiniband/hw/nes/nes_verbs.c: address dead code warning in nes_verbs.c

2008-02-21 Thread gstreiff
From: Chien Tung <[EMAIL PROTECTED]> Adrian Bunk found some apparently dead code in nes_verbs.c after a coverity review that really shouldn't have been dead. The function nes_create_cq() was missing the following assignment err = 1; just prior to an iteration that conditionally set er

[PATCH 2.6 5/8] infiniband/hw/nes/nes_verbs.c: fix use-after-free

2008-02-21 Thread gstreiff
Adrian Bunk flagged this check-after-use issue spotted by the Coverity checker. Signed-off-by: Glenn Streiff <[EMAIL PROTECTED]> --- drivers/infiniband/hw/nes/nes_verbs.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/

[PATCH 2.6 6/8] infiniband/hw/nes/nes_cm.c: Fix use-after-free

2008-02-21 Thread gstreiff
From: Faisal Latif <[EMAIL PROTECTED]> Use-after-free spotted by Coverity checker. Flagged by Adrian Bunk. Signed-off-by: Faisal Latif <[EMAIL PROTECTED]> Signed-off-by: Glenn Streiff <[EMAIL PROTECTED]> --- drivers/infiniband/hw/nes/nes_cm.c |1 + 1 files changed, 1 insertions(+), 0 delet

[PATCH 2.6 6/8] RDMA/nes: Fix rdma connection establishment on big-endian platforms

2008-02-21 Thread gstreiff
From: Faisal Latif <[EMAIL PROTECTED]> With commit ef19454bd437b2ba, behavior of crc32c changes on big-endian platforms. Our algorithm expects previous behavior otherwise we have rdma connection establishment failure on big-endian platforms like ppc64. Applying cpu_to_le32() to value returned by

[PATCH 2.6 7/8] RDMA/nes: Fix rdma connection establishment on big-endian platforms

2008-02-21 Thread gstreiff
From: Faisal Latif <[EMAIL PROTECTED]> With commit ef19454bd437b2ba, behavior of crc32c changes on big-endian platforms. Our algorithm expects previous behavior otherwise we have rdma connection establishment failure on big-endian platforms like ppc64. Applying cpu_to_le32() to value returned by

[PATCH 2.6 8/8] RDMA/nes: Fix interrupt moderation low threshold

2008-02-21 Thread gstreiff
From: John Lacombe <[EMAIL PROTECTED]> Interrupt moderation low threshold value was incorrectly triggering, indicating that the threshold should be lowered. The impact was the timer was likely to become 40usecs and get stuck there. The biggest side effect was too many interrupts and nonoptimal p

[PATCH 2.6 4/8] infiniband/hw/nes/nes.c: fix a check-after-use

2008-02-21 Thread gstreiff
From: Adrian Bunk <[EMAIL PROTECTED]> This patch fixes a check-after-use spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: Glenn Streiff <[EMAIL PROTECTED]> --- drivers/infiniband/hw/nes/nes.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(

[PATCH 2.6 3/8] infiniband/hw/nes/nes_cm.c: fix a memory leak

2008-02-21 Thread gstreiff
From: Adrian Bunk <[EMAIL PROTECTED]> This patch fixes a memory leak spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: Glenn Streiff <[EMAIL PROTECTED]> --- drivers/infiniband/hw/nes/nes_cm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions