> From: Yi Liu <yi.l.liu@xxxxxxxxx> > Sent: Wednesday, July 10, 2024 8:42 AM > > 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 <zaltys@xxxxxxxxx> > Cc: Beld Zhang <beldzhang@xxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>