osm_link_mgr.c: Fix uninitialized value (physp0)
PATCH 2/2 osm_link_mgr.c: Fix uninitialized value (physp0)
From: Shlomi Nimrodi <shlomin-VPRAkNaXOzVWk0Htik3J/[email protected]>
physp0 might be uninitialized for HCA.
--- opensm/osm_link_mgr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/osm_link_mgr.c +1 -1
@@ -101,7 +101,7 @@ static int link_mgr_set_physp_pi(osm_sm_t * sm, IN osm_physp_t * p_physp,ib_api_status_t status;uint8_t port_num, mtu, op_vls, smsl =OSM_DEFAULT_SL ;boolean_t esp0 = FALSE, send_set = FALSE, send_set2 = FALSE; -osm_physp_t *p_remote_physp, *physp0; +osm_physp_t *p_remote_physp, *physp0 =NULL ;int issue_ext =0 , fdr10_change =0 ;int ret =0 ;ib_net32_t attr_mod, cap_mask;
Signature · 6 lines
1.7.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html