projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
747f1c6
)
i40iw: Correct status check on i40iw_get_pble
author
Faisal Latif
<faisal.latif@intel.com>
Tue, 14 Jun 2016 21:54:17 +0000
(16:54 -0500)
committer
Doug Ledford
<dledford@redhat.com>
Thu, 23 Jun 2016 14:35:34 +0000
(10:35 -0400)
i40iw_get_pble returns 0 on success. Correct the check on return
code.
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
index
c6e75ac
..
65bea9c
100644
(file)
--- a/
drivers/infiniband/hw/i40iw/i40iw_verbs.c
+++ b/
drivers/infiniband/hw/i40iw/i40iw_verbs.c
@@
-1527,7
+1527,7
@@
static struct ib_mr *i40iw_alloc_mr(struct ib_pd *pd,
mutex_lock(&iwdev->pbl_mutex);
status = i40iw_get_pble(&iwdev->sc_dev, iwdev->pble_rsrc, palloc, iwmr->page_cnt);
mutex_unlock(&iwdev->pbl_mutex);
- if (
!
status)
+ if (status)
goto err1;
if (palloc->level != I40IW_LEVEL_1)