projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ee340
)
[PATCH] srp: fix fmr error handling
author
Vu Pham
<
[email protected]
>
Fri, 14 Jul 2006 07:23:53 +0000
(
00:23
-0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 15 Jul 2006 04:53:50 +0000
(21:53 -0700)
srp_unmap_data assumes req->fmr is NULL if the request is not mapped, so we
must clean it out in case of an error.
Signed-off-by: Vu Pham <
[email protected]
>
Signed-off-by: Michael S. Tsirkin <
[email protected]
>
Acked-by: Roland Dreier <
[email protected]
>
Cc: Roland Dreier <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/infiniband/ulp/srp/ib_srp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/srp/ib_srp.c
b/drivers/infiniband/ulp/srp/ib_srp.c
index 4e22afef72062571c12b3489bc9e26fa998fce43..619118080bcb64fa7b350e89dfff03689adc7d0d 100644
(file)
--- a/
drivers/infiniband/ulp/srp/ib_srp.c
+++ b/
drivers/infiniband/ulp/srp/ib_srp.c
@@
-618,6
+618,7
@@
static int srp_map_fmr(struct srp_device *dev, struct scatterlist *scat,
dma_pages, page_cnt, &io_addr);
if (IS_ERR(req->fmr)) {
ret = PTR_ERR(req->fmr);
+ req->fmr = NULL;
goto out;
}