diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 1d70dd0d0c8cf9fccf6e8a73e835facdd36fcefa..293219ee6fb933c7db8c22bd748d5b984a4d658b 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -1674,7 +1674,7 @@ struct iommu_domain *iommu_sva_domain_alloc(struct device *dev, static inline struct iommu_sva * iommu_sva_bind_device(struct device *dev, struct mm_struct *mm) { - return NULL; + return ERR_PTR(-ENODEV); } static inline void iommu_sva_unbind_device(struct iommu_sva *handle)