iommu/omap: Remove iopgtable_clear_entry_all() from driver remove
authorSuman Anna <s-anna@ti.com>
Mon, 4 Apr 2016 22:46:18 +0000 (17:46 -0500)
committerJoerg Roedel <jroedel@suse.de>
Tue, 5 Apr 2016 15:53:19 +0000 (17:53 +0200)
commit521f40823ebf2818045546d45aa378eba1c41717
tree56a748cfe20e6f049f0e9fcfc7824560faa1127e
parent9735a22799b9214d17d3c231fe377fc852f042e9
iommu/omap: Remove iopgtable_clear_entry_all() from driver remove

The function iopgtable_clear_entry_all() is used for clearing all
the page table entries. These entries are neither created nor
initialized during the OMAP IOMMU driver probe, and are managed
only when a client device attaches to the IOMMU. So, there is no
need to invoke this function on a driver remove.

Removing this fixes a NULL pointer dereference crash if the IOMMU
device is unbound from the driver with no client device attached
to the IOMMU device.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
This page took 0.025704 seconds and 5 git commands to generate.