public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/infiniband/hw/amso1100/c2_rnic.c: fix a NULL dereference
@ 2006-10-08 23:16 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-10-08 23:16 UTC (permalink / raw)
  To: Tom Tucker; +Cc: Steve Wise, Roland Dreier, openib-general, linux-kernel

This patch fixes a NULL dereference spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6/drivers/infiniband/hw/amso1100/c2_rnic.c.old	2006-10-09 00:39:32.000000000 +0200
+++ linux-2.6/drivers/infiniband/hw/amso1100/c2_rnic.c	2006-10-09 00:40:30.000000000 +0200
@@ -150,8 +150,8 @@
 	    (struct c2wr_rnic_query_rep *) (unsigned long) (vq_req->reply_msg);
 	if (!reply)
 		err = -ENOMEM;
-
-	err = c2_errno(reply);
+	else
+		err = c2_errno(reply);
 	if (err)
 		goto bail2;
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-08 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-08 23:16 [2.6 patch] drivers/infiniband/hw/amso1100/c2_rnic.c: fix a NULL dereference Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox