Re: [PATCH] gpu: host1x: Check whether size of unpin isn't 0

2018-07-09 Thread Thierry Reding
On Fri, Jul 06, 2018 at 09:02:36PM +0300, Dmitry Osipenko wrote: > 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 > --- >

[PATCH] gpu: host1x: Check whether size of unpin isn't 0

2018-07-09 Thread Dmitry Osipenko
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 --- drivers/gpu/host1x/job.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(