diff options
author | Yi Liu <yi.l.liu@intel.com> | 2025-03-24 15:00:33 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2025-03-28 16:07:23 +0300 |
commit | 41464a4628f3b15988bdc3dcd824c2e91064fc6f (patch) | |
tree | 0975254237fa60c2cb5950f71134276b3511ed23 /tools/perf/scripts/python/syscall-counts.py | |
parent | 6d9500bb1ff8c7f9c3ce199521c41aa41e8fd994 (diff) | |
download | linux-41464a4628f3b15988bdc3dcd824c2e91064fc6f.tar.xz |
iommufd: Initialize the flags of vevent in iommufd_viommu_report_event()
The vevent->header.flags is not initialized per allocation, hence the
vevent read path may treat the vevent as lost_events_header wrongly.
Use kzalloc() to alloc memory for new vevent.
Fixes: e8e1ef9b77a7 ("iommufd/viommu: Add iommufd_viommu_report_event helper")
Link: https://patch.msgid.link/r/20250324120034.5940-2-yi.l.liu@intel.com
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions