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:
3af3363
)
IB/srpt: Don't return freed pointer from srpt_alloc_ioctx_ring()
author
Jesper Juhl
<jj@chaosbits.net>
Sat, 4 Feb 2012 22:49:40 +0000
(23:49 +0100)
committer
Roland Dreier
<roland@purestorage.com>
Mon, 6 Feb 2012 16:57:11 +0000
(08:57 -0800)
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srpt/ib_srpt.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/srpt/ib_srpt.c
b/drivers/infiniband/ulp/srpt/ib_srpt.c
index c125614ac256923f91f7c5c89fd0fe926dcbc572..2b73d43cd6919a33c6b491467ea02a5d7af8202f 100644
(file)
--- a/
drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/
drivers/infiniband/ulp/srpt/ib_srpt.c
@@
-687,6
+687,7
@@
err:
while (--i >= 0)
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
kfree(ring);
+ ring = NULL;
out:
return ring;
}