<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=342352513-27112008><FONT face=Arial color=#0000ff
size=2>Applied in 1771.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <B>On Behalf Of </B>Leonid
Keller<BR><B>Sent:</B> Sunday, November 23, 2008 8:20 PM<BR><B>To:</B>
ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw][patch][MLX4] A bug in error
flow<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<P><FONT face=Arial><FONT size=2><SPAN class=054391518-23112008>F</SPAN>ixed a
bug, causing crash only in work without user vendor library.</FONT></FONT></P>
<P><SPAN class=054391518-23112008><FONT face=Arial size=2>(On absence of User
Library 'udata' will be 0)</FONT></SPAN></P></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Index:
cq.c<BR>===================================================================<BR>---
cq.c (revision 1765)<BR>+++ cq.c (working copy)<BR>@@ -145,7 +145,7
@@<BR> buf_size = entries * sizeof (struct
mlx4_cqe);<BR> spin_lock_init(&cq->lock);<BR> <BR>- if
(context) {<BR>+ if (context && udata)
{<BR> struct mlx4_ib_create_cq
ucmd;<BR> <BR> if (ib_copy_from_udata(&ucmd, udata,
sizeof ucmd)) {<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>