commit | b764a801663a9cb6594bc1a4070b57e760f26780 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Wed Mar 13 11:55:41 2019 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri May 31 06:48:31 2019 -0700 |
tree | 52aa0b12ef6b9efa339f89cb59bcd1c585ab6477 | |
parent | a042865724d999842b8da435e3b3fa46e377cdc5 [diff] |
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>