提交 e28045ab 编写于 作者: Z Zhouyi Zhou 提交者: Joerg Roedel

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: NZhouyi Zhou <yizhouzhou@ict.ac.cn>
Signed-off-by: NJoerg Roedel <joro@8bytes.org>
上级 07a02030
......@@ -520,6 +520,7 @@ static void flush_iopte_range(u32 *first, u32 *last)
static void iopte_free(u32 *iopte)
{
/* Note: freed iopte's must be clean ready for re-use */
if (iopte)
kmem_cache_free(iopte_cachep, iopte);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册