]> www.infradead.org Git - users/dwmw2/linux.git/commit
spi : spi-topcliff-pch: Fix to handle empty DMA buffers
authorAditya Pakki <pakki001@umn.edu>
Wed, 13 Mar 2019 16:55:41 +0000 (11:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:47:35 +0000 (06:47 -0700)
commitfebdf321b762c4b47cddaace37c031eb71242ecd
tree067d410f6017ed156bee1a5e290817c88fe6462e
parentc0c5f88144c0aa0f835675246290d471f29d3c0a
spi : spi-topcliff-pch: Fix to handle empty DMA buffers

[ Upstream commit f37d8e67f39e6d3eaf4cc5471e8a3d21209843c6 ]

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: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-topcliff-pch.c