[media] omap3isp: Prevent crash at module unload
authorSakari Ailus <sakari.ailus@iki.fi>
Fri, 27 Jan 2012 10:18:51 +0000 (07:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 May 2012 16:50:51 +0000 (13:50 -0300)
commita32f2f90543853449f0e49eaf885e8d24d5809a7
treef4d2cef9bc4575918be7d2be24e3a8ba9a3e4de8
parent1567bb7dcc6a232693143fdbe3b89791f20890ac
[media] omap3isp: Prevent crash at module unload

iommu_domain_free() was called in isp_remove() before omap3isp_put().
omap3isp_put() must not save the context if the IOMMU no longer is there.
Fix this.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/isp.c