iommu: fix NULL pointer when release iopf queue
ascend inclusion category: bugfix bugzilla: NA CVE: NA ---------------------------------- The iopf_queue should be checked when release the related resources. Since, the value of iopf_queue may be NULL. For example, when the SMMU does not support the STALL and PRI features or the driver fails to initialize, the iopf_queue will be NULL pointer. Signed-off-by: NZhou Guanghui <zhouguanghui1@huawei.com> Signed-off-by: NBixuan Cui <cuibixuan@huawei.com> Signed-off-by: Nchenjiankang <chenjiankang1@huawei.com> Signed-off-by: Nxiangrui <rui.xiang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录