lists.openwall.net   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  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 9 Oct 2006 01:16:35 +0200
From:	Adrian Bunk <bunk@...sta.de>
To:	Tom Tucker <tom@...ngridcomputing.com>
Cc:	Steve Wise <swise@...ngridcomputing.com>,
	Roland Dreier <rolandd@...co.com>, openib-general@...nib.org,
	linux-kernel@...r.kernel.org
Subject: [2.6 patch] drivers/infiniband/hw/amso1100/c2_rnic.c: fix a NULL dereference

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

Signed-off-by: Adrian Bunk <bunk@...sta.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;
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ