diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_memfree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_memfree.c b/drivers/infiniband/hw/mthca/mthca_memfree.c index e8f93478f38d..46981d48c232 100644 --- a/drivers/infiniband/hw/mthca/mthca_memfree.c +++ b/drivers/infiniband/hw/mthca/mthca_memfree.c | |||
@@ -337,7 +337,8 @@ int mthca_alloc_db(struct mthca_dev *dev, int type, u32 qn, u32 **db) | |||
337 | break; | 337 | break; |
338 | 338 | ||
339 | default: | 339 | default: |
340 | return -1; | 340 | ret = -EINVAL; |
341 | goto out; | ||
341 | } | 342 | } |
342 | 343 | ||
343 | for (i = start; i != end; i += dir) | 344 | for (i = start; i != end; i += dir) |