On Tue, Jul 09, 2024 at 05:41:50PM -0700, Yi Liu wrote: > 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> > --- > drivers/vfio/pci/vfio_pci_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason