<!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.3314" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=007280416-27082008><FONT face=Arial><FONT color=#0000ff><FONT
size=2>Hi Leonid,</FONT></FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=007280416-27082008></SPAN></FONT> </DIV>
<DIV><SPAN class=007280416-27082008><FONT face=Arial><FONT color=#0000ff><FONT
size=2>The patch <SPAN class=702563616-27082008>add</SPAN>s <SPAN
class=702563616-27082008>checking of the port_num field in av verbs
when </SPAN>"get_gid_index"<SPAN class=702563616-27082008> is
called.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=007280416-27082008><SPAN
class=702563616-27082008>In previous revision "get_gid_index" was in uvp code
and port_num was checked in order to </SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=007280416-27082008><SPAN
class=702563616-27082008>return correct value (see <FONT face=Arial
color=#0000ff size=2><SPAN class=007280416-27082008><SPAN
class=702563616-27082008>ib_al.h #965) and also
</SPAN></SPAN></FONT></SPAN></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=007280416-27082008><SPAN class=702563616-27082008>protect
p_port_attr array.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=007280416-27082008>[MLNX
: 305<SPAN class=702563616-27082008>2</SPAN>]</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><EM>Thanks,
Reuven.</EM></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=702563616-27082008><FONT face=Arial color=#0000ff
size=2>>>>>>>>>>>>>>>>>>>>>>>>>>></FONT></SPAN></DIV>
<DIV><SPAN class=702563616-27082008><FONT face=Arial color=#0000ff size=2>Index:
core/al/user/ual_av.c<BR>===================================================================<BR>---
core/al/user/ual_av.c (revision 1521)<BR>+++
core/al/user/ual_av.c (working copy)<BR>@@ -58,6 +58,16
@@<BR> uint16_t i;<BR> <BR> ci_ca_lock_attr(
p_ci_ca );<BR>+<BR>+ // sanity check<BR>+ if (port_num == 0 ||
port_num >
p_ci_ca->p_user_attr->num_ports)<BR>+ {<BR>+ AL_PRINT(TRACE_LEVEL_WARNING
,AL_DBG_AV,<BR>+ ("UAL_GET_GID_INDEX: invalid port number
specified (%d)\n", port_num) );<BR>+ status =
IB_INVALID_PORT;<BR>+ goto
out;<BR>+ }<BR>+<BR> p_port_attr =
&p_ci_ca->p_user_attr->p_port_attr[port_num];<BR> for( i =
0; i < p_port_attr->num_gids; i++ )<BR> {<BR>@@ -68,6 +78,8
@@<BR> break;<BR> }<BR> }<BR>+<BR>+out:<BR> ci_ca_unlock_attr(
p_ci_ca );<BR> <BR> return
status;<BR></FONT></SPAN></DIV></BODY></HTML>