Skip to content
Commit 6f8050e4 authored by Aditya Pakki's avatar Aditya Pakki Committed by Paul Gortmaker
Browse files

spi : spi-topcliff-pch: Fix to handle empty DMA buffers



commit f37d8e67 upstream.

pch_alloc_dma_buf allocated tx, rx DMA buffers which can fail. Further,
these buffers are used without a check. The patch checks for these
failures and sends the error upstream.

Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 62bbda8e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment