“1da177e4c3f41524e886b7f1b8a0c1fc7321cac2”上不存在“arch/mips/include/asm/serial.h”
提交 72dcac63 编写于 作者: J Joerg Roedel

iommu: Warn once when device_group callback returns NULL

This callback should never return NULL. Print a warning if
that happens so that we notice and can fix it.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 8faf5e5a
......@@ -1010,6 +1010,9 @@ struct iommu_group *iommu_group_get_for_dev(struct device *dev)
if (ops && ops->device_group)
group = ops->device_group(dev);
if (WARN_ON_ONCE(group == NULL))
return ERR_PTR(-EINVAL);
if (IS_ERR(group))
return group;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册