ibacm: properly check return from ibv_open_device
PATCH 1/1 ibacm: properly check return from ibv_open_device
Signed-off-by Ira Weiny <[email protected]>
--- src/acme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/acme.c +1 -1
@@ -353,7 +353,7 @@ static int open_verbs(void)for (i =0 ; i < dev_cnt; i++) { verbs[i] =ibv_open_device (dev_array[i]); -if (!verbs) { +if (!verbs[i]) {printf ("ibv_open_device - failed to open device\n" ); ret =-1 ; goto err2;
Signature · 6 lines
1.7.12 -- 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
A message that is not in the archive (sent off-list or not yet received): 20140321072308.ed70c376a0708ccb11583a6b-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
thanks - merged
--
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