[ofw][patch][MLX4] A bug in error flow

Leonid Keller leonid at mellanox.co.il
Thu Nov 27 05:25:48 PST 2008


Applied in 1771.


________________________________

	From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Leonid Keller
	Sent: Sunday, November 23, 2008 8:20 PM
	To: ofw at lists.openfabrics.org
	Subject: [ofw][patch][MLX4] A bug in error flow
	
	

	Fixed a bug, causing crash only in work without user vendor
library.

	(On absence of User Library 'udata' will be 0)

	 
	Index: cq.c
	
===================================================================
	--- cq.c (revision 1765)
	+++ cq.c (working copy)
	@@ -145,7 +145,7 @@
	  buf_size     = entries * sizeof (struct mlx4_cqe);
	  spin_lock_init(&cq->lock);
	 
	- if (context) {
	+ if (context && udata) {
	   struct mlx4_ib_create_cq ucmd;
	 
	   if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) {
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081127/d263db59/attachment.html>


More information about the ofw mailing list