]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit165f0f92a34a1134fad61f106fa2a1732a1aee02
tree4a76dfadfe20ffe839b5c81f1e8db40d539dd923
parent8c315a01a796e9e7dff6ce46fcbf47e36c2e6885
spi : spi-topcliff-pch: Fix to handle empty DMA buffers

BugLink: https://bugs.launchpad.net/bugs/1838700
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/spi/spi-topcliff-pch.c