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:
96622bd
)
async_pq_val: fix DMA memory leak
author
Justin Maggard
<
[email protected]
>
Tue, 4 Oct 2016 20:17:58 +0000
(13:17 -0700)
committer
Vinod Koul
<
[email protected]
>
Wed, 5 Oct 2016 00:48:09 +0000
(06:18 +0530)
Add missing dmaengine_unmap_put(), so we don't OOM during RAID6 sync.
Fixes: 1786b943dad0 ("async_pq_val: convert to dmaengine_unmap_data")
Signed-off-by: Justin Maggard <
[email protected]
>
Reviewed-by: Dan Williams <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Vinod Koul <
[email protected]
>
crypto/async_tx/async_pq.c
patch
|
blob
|
history
diff --git
a/crypto/async_tx/async_pq.c
b/crypto/async_tx/async_pq.c
index 08b3ac68952b19fba6e4ab747744ca3317f0de9d..f83de99d7d71cf356d35a9efef65768f85f3f769 100644
(file)
--- a/
crypto/async_tx/async_pq.c
+++ b/
crypto/async_tx/async_pq.c
@@
-368,8
+368,6
@@
async_syndrome_val(struct page **blocks, unsigned int offset, int disks,
dma_set_unmap(tx, unmap);
async_tx_submit(chan, tx, submit);
-
- return tx;
} else {
struct page *p_src = P(blocks, disks);
struct page *q_src = Q(blocks, disks);
@@
-424,9
+422,11
@@
async_syndrome_val(struct page **blocks, unsigned int offset, int disks,
submit->cb_param = cb_param_orig;
submit->flags = flags_orig;
async_tx_sync_epilog(submit);
-
- return NULL;
+ tx = NULL;
}
+ dmaengine_unmap_put(unmap);
+
+ return tx;
}
EXPORT_SYMBOL_GPL(async_syndrome_val);