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

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>
This commit is contained in:
Aditya Pakki 2019-03-13 11:55:41 -05:00 • committed by Mark Brown
commit f37d8e67f3
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0