diff options
| author | Yi Liu <[email protected]> | 2025-03-24 12:00:34 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2025-03-28 13:07:23 +0000 |
| commit | 6fc85bbbeaeae39c61d230ce279c0b0d0952d3e3 (patch) | |
| tree | 151256de9875550968e098e9e59b17297d850f7f /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | iommufd: Initialize the flags of vevent in iommufd_viommu_report_event() (diff) | |
| download | kernel-6fc85bbbeaeae39c61d230ce279c0b0d0952d3e3.tar.gz kernel-6fc85bbbeaeae39c61d230ce279c0b0d0952d3e3.zip | |
iommufd: Balance veventq->num_events inc/dec
iommufd_veventq_fops_read() decrements veventq->num_events when a vevent
is read out. However, the report path ony increments veventq->num_events
for normal events. To be balanced, make the read path decrement num_events
only for normal vevents.
Fixes: e36ba5ab808e ("iommufd: Add IOMMUFD_OBJ_VEVENTQ and IOMMUFD_CMD_VEVENTQ_ALLOC")
Link: https://patch.msgid.link/r/[email protected]
Signed-off-by: Yi Liu <[email protected]>
Reviewed-by: Nicolin Chen <[email protected]>
Tested-by: Nicolin Chen <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
