Re: [PATCH v7 06/12] iommu: Remove iommu_[un]register_device_fault_handler()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023/12/4 20:36, Yi Liu wrote:
  /**
   * iommu_report_device_fault() - Report fault event to device driver
   * @dev: the device
@@ -1395,10 +1325,6 @@ int iommu_report_device_fault(struct device *dev, struct iommu_fault_event *evt)
      /* we only report device fault if there is a handler registered */
      mutex_lock(&param->lock);
      fparam = param->fault_param;
-    if (!fparam || !fparam->handler) {

should it still check the fparam?

Yes.

Best regards,
baolu




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux