]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Fix dma_free_wc() argument in the error path
authorDmitry Osipenko <digetx@gmail.com>
Mon, 23 Apr 2018 09:54:56 +0000 (12:54 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 17 May 2018 15:44:48 +0000 (17:44 +0200)
commita6078a0d5d467dda5a801fa0a0888fba4fae5baa
tree7ebe1facb208007c3d34b703a2a1db1349c0bcd7
parent3f6d63b4bc4da9ba1817f9133bcd1f1455740327
gpu: host1x: Fix dma_free_wc() argument in the error path

If IOVA allocation or IOMMU mapping fails, dma_free_wc() is invoked with
size=0 because of a typo, that triggers "kernel BUG at mm/vmalloc.c:124!".

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/cdma.c