]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/exynos: Remove initconst attribute to avoid potential kernel oops
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 9 Oct 2017 11:40:23 +0000 (13:40 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 12 Oct 2017 08:25:11 +0000 (10:25 +0200)
commita0a44100561dbde1c55c607a330025e4fa94fdff
treee0d0a942a97e23e8062fedb173f40e94a47aae65
parente5cd36b9a20017c3f621b6f95283a088d66fbdda
iommu/exynos: Remove initconst attribute to avoid potential kernel oops

Exynos SYSMMU registers standard platform device with sysmmu_of_match
table, what means that this table is accessed every time a new platform
device is registered in a system. This might happen also after the boot,
so the table must not be attributed as initconst to avoid potential kernel
oops caused by access to freed memory.

Fixes: ad9b32ce7cb1 ("iommu/exynos: Support for device tree")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/exynos-iommu.c