Re: [PATCH] drm: tegra: fix NULL deref in debugfs/iova

2017-08-17 Thread Thierry Reding
On Mon, Aug 14, 2017 at 11:53:45PM +0200, Michał Mirosław wrote: > When IOMMU is off, ->mm_lock is not initialized and ->mm is NULL. > > Signed-off-by: Michał Mirosław > --- > drivers/gpu/drm/tegra/drm.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) Applied, thanks! Thierry

[PATCH] drm: tegra: fix NULL deref in debugfs/iova

2017-08-14 Thread Michał Mirosław
When IOMMU is off, ->mm_lock is not initialized and ->mm is NULL. Signed-off-by: Michał Mirosław --- drivers/gpu/drm/tegra/drm.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 8b7842548b9f..f859c06b8ab0