linux-uconsole/drivers/dma/ioat
Alexander.Barabash@dell.com 10d55ea613 ioat: ioat_alloc_ring() failure handling.
[ Upstream commit b0b5ce1010 ]

If dma_alloc_coherent() returns NULL in ioat_alloc_ring(), ring
allocation must not proceed.

Until now, if the first call to dma_alloc_coherent() in
ioat_alloc_ring() returned NULL, the processing could proceed, failing
with NULL-pointer dereferencing further down the line.

Signed-off-by: Alexander Barabash <alexander.barabash@dell.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/75e9c0e84c3345d693c606c64f8b9ab5@x13pwhopdag1307.AMER.DELL.COM
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-17 19:47:16 +01:00
..
dca.c dmaengine: Replace WARN_TAINT_ONCE() with pr_warn_once() 2017-06-15 09:50:37 +05:30
dma.c ioat: ioat_alloc_ring() failure handling. 2020-01-17 19:47:16 +01:00
dma.h dmaengine: Convert timers to use timer_setup() 2017-10-24 20:11:21 +05:30
hw.h dmaengine: ioatdma: Add Skylake PCI Dev ID 2017-01-02 08:12:59 +05:30
init.c dmaengine: ioat: fix prototype of ioat_enumerate_channels 2019-11-24 08:20:24 +01:00
Makefile
prep.c dmaengine: ioatdma: Squelch framesize warnings 2016-01-25 09:49:55 +05:30
registers.h i7300_idle: Remove this driver 2016-11-18 12:07:56 +01:00
sysfs.c dmaengine: ioatdma: Add intr_coalesce sysfs entry 2017-08-23 21:32:21 +05:30