projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be90a09
)
async_pq_val: fix DMA memory leak
author
Justin Maggard
<jmaggard10@gmail.com>
Tue, 4 Oct 2016 20:17:58 +0000
(13:17 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 22 Oct 2016 10:26:55 +0000
(12:26 +0200)
commit
c84750906b4818d4929fbf73a4ae6c113b94f52b
upstream.
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 <jmaggard@netgear.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 c0748bbd4c083b47f78c662cdd7cb490590a2587..84f8d4d8b6bc8c3f54d4ae2ef90bb6e8d693e570 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);