1
0
Fork 0
remarkable-linux/drivers/gpu/host1x
Dmitry Osipenko d3f205d2d3 gpu: host1x: Check whether size of unpin isn't 0
[ Upstream commit ec58923215 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-24 13:09:14 +02:00
..
hw gpu: host1x: Fix bitshift/mask multipliers 2017-08-17 17:57:06 +02:00
Kconfig gpu: host1x: select IOMMU_IOVA 2017-05-18 10:41:28 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bus.c drm/tegra: Changes for v4.14-rc1 2017-08-21 17:37:33 +10:00
bus.h gpu: host1x: Provide a proper struct bus_type 2015-01-27 10:09:14 +01:00
cdma.c gpu: host1x: Add IOMMU support 2017-04-05 18:11:43 +02:00
cdma.h gpu: host1x: Remove unused host1x_cdma_stop() definition 2017-06-15 14:25:18 +02:00
channel.c gpu: host1x: Refactor channel allocation code 2017-06-15 14:25:38 +02:00
channel.h gpu: host1x: Refactor channel allocation code 2017-06-15 14:25:38 +02:00
debug.c gpu: host1x: Refactor channel allocation code 2017-06-15 14:25:38 +02:00
debug.h gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
dev.c drm/tegra: Changes for v4.14-rc1 2017-08-21 17:37:33 +10:00
dev.h gpu: host1x: Refactor channel allocation code 2017-06-15 14:25:38 +02:00
intr.c gpu: host1x: Constify array of action handlers 2016-06-23 11:59:31 +02:00
intr.h gpu: host1x: Use unsigned int consistently for IDs 2016-06-23 11:59:24 +02:00
job.c gpu: host1x: Check whether size of unpin isn't 0 2018-08-24 13:09:14 +02:00
job.h gpu: host1x: Remove unused 'struct host1x_cmdbuf' 2017-06-15 14:24:59 +02:00
mipi.c drm/tegra: dsi: Enhance runtime power management 2016-08-24 15:58:57 +02:00
syncpt.c gpu: host1x: Flesh out kerneldoc 2017-06-15 13:58:43 +02:00
syncpt.h gpu: host1x: Use unsigned int consistently for IDs 2016-06-23 11:59:24 +02:00