Skip to content
Commit 446a3f74 authored by Alexander.Barabash@dell.com's avatar Alexander.Barabash@dell.com Committed by Paul Gortmaker
Browse files

ioat: ioat_alloc_ring() failure handling.



commit b0b5ce10 upstream.

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: default avatarAlexander Barabash <alexander.barabash@dell.com>
Acked-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/75e9c0e84c3345d693c606c64f8b9ab5@x13pwhopdag1307.AMER.DELL.COM


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 0c6a363e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment