diff options
author | Yi Liu <[email protected]> | 2024-07-09 17:41:50 -0700 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2024-07-10 08:47:46 -0600 |
commit | 5a88a3f67e37e39f933b38ebb4985ba5822e9eca (patch) | |
tree | f505a10bc548779257f9d341e43984ae9c1b8405 /scripts/gdb/linux/utils.py | |
parent | 256abd8e550ce977b728be79a74e1729438b4948 (diff) |
vfio/pci: Init the count variable in collecting hot-reset devices
The count variable is used without initialization, it results in mistakes
in the device counting and crashes the userspace if the get hot reset info
path is triggered.
Fixes: f6944d4a0b87 ("vfio/pci: Collect hot-reset devices to local buffer")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=219010
Reported-by: Žilvinas Žaltiena <[email protected]>
Cc: Beld Zhang <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions