Signed-off-by: Ira Weiny <[email protected]>
---
 src/acme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/acme.c b/src/acme.c
index b122e58..d3d6303 100644
--- a/src/acme.c
+++ b/src/acme.c
@@ -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;
-- 
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

Reply via email to