]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/omap: Check for NULL in iopte_free()
authorZhouyi Zhou <zhouzhouyi@gmail.com>
Wed, 5 Mar 2014 10:20:19 +0000 (18:20 +0800)
committerJoerg Roedel <joro@8bytes.org>
Wed, 5 Mar 2014 22:02:40 +0000 (23:02 +0100)
commit5961be00237f469d398ed76398c31d8f21af643b
treef17793b32ff1e67170595b440d9d84dd73e3cfb0
parentd054c05635300aaa8cc61672deeac0af84dc7c0f
iommu/omap: Check for NULL in iopte_free()

The iopte_free() function should check for NULL because
kmem_cache_free() will panic on NULL argument.

Signed-off-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/omap-iommu.c