Discussion:
[ofw] [Patch 35/62] Reference implementation of NDv2
Fab Tillier
2013-02-21 02:14:39 UTC
Permalink
Bug fix for IPoIB interface query: don't return success if the interface data guid doesn't match. The current code returns the local variable 'status', which at this point in the function is STATUS_SUCCESS.

Signed-off-by: Fab Tillier <***@microsoft.com>

diff -dwup3 -X excl.txt -r \dev\openib\ofw\gen1\branches\mlx4_30\trunk\core\bus\kernel\bus_port_mgr.c .\core\bus\kernel\bus_port_mgr.c
--- \dev\openib\ofw\gen1\branches\mlx4_30\trunk\core\bus\kernel\bus_port_mgr.c Tue Aug 07 16:41:02 2012
+++ .\core\bus\kernel\bus_port_mgr.c Thu Jul 26 16:38:31 2012
@@ -2053,7 +2053,7 @@ port_query_ipoib_ifc(
p_guid->Data4[0], p_guid->Data4[1], p_guid->Data4[2],
p_guid->Data4[3], p_guid->Data4[4], p_guid->Data4[5],
p_guid->Data4[6], p_guid->Data4[7]) );
- return status;
+ return STATUS_NOT_SUPPORTED;
}

if( p_ifc_data->version != IPOIB_INTERFACE_DATA_VERSION )

Loading...