mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
595a334148
If the dw_edma_alloc_burst() function fails then we free "chunk" but
it's still on the "desc->chunk->list" list so it will lead to a use
after free. Also the "->chunks_alloc" count is incremented when it
shouldn't be.
In current kernels small allocations are guaranteed to succeed and
dw_edma_alloc_burst() can't fail so this will not actually affect
runtime.
Fixes:
|
||
---|---|---|
.. | ||
dw-edma-core.c | ||
dw-edma-core.h | ||
dw-edma-pcie.c | ||
dw-edma-v0-core.c | ||
dw-edma-v0-core.h | ||
dw-edma-v0-debugfs.c | ||
dw-edma-v0-debugfs.h | ||
dw-edma-v0-regs.h | ||
Kconfig | ||
Makefile |