drm/tegra: Fix NULL deref in debugfs/iova
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 14 Aug 2017 21:53:45 +0000 (23:53 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Aug 2017 15:57:10 +0000 (17:57 +0200)
commit68d890a3cca5a96a5443972922c84df89f6301e6
tree7ce0be4cd2aa28f31439234f164a4141bedc431b
parent7664b2fa42b5e962dd9ffd9e386dc20cbc966176
drm/tegra: Fix NULL deref in debugfs/iova

When IOMMU is off, ->mm_lock is not initialized and ->mm is NULL.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c