]> git.itanic.dy.fi Git - linux-stable/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)
commitec58923215dbbeef59ee82923ee94d745f73db58
tree40f8358325acc7055a5b55ff94c87899ea609792
parent4466b1f0e022f94a026bd700fee34bff15cdc4ef
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