]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Check whether size of unpin isn't 0
authorDmitry Osipenko <digetx@gmail.com>
Fri, 6 Jul 2018 18:02:36 +0000 (21:02 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 9 Jul 2018 08:31:30 +0000 (10:31 +0200)
commit8d299c73f2a6c1f0d3b6dd3ed8ba4cf7c7970182
tree40f8358325acc7055a5b55ff94c87899ea609792
parent172bcb9d66355094328a329f4e51134e6e03948a
gpu: host1x: Check whether size of unpin isn't 0

Only gather pins are mapped by the Host1x driver, regular BO relocations
are not. Check whether size of unpin isn't 0, otherwise IOVA allocation at
0x0 could be erroneously released.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c