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

Leonid Keller leonid at mellanox.co.il
Sun Nov 23 10:20:03 PST 2008


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/20081123/89c200e7/attachment.html>


More information about the ofw mailing list