linux/drivers/vfio/fsl-mc
Diana Craciun 822e1a90af vfio/fsl-mc: fix the return of the uninitialized variable ret
The vfio_fsl_mc_reflck_attach function may return, on success path,
an uninitialized variable. Fix the problem by initializing the return
variable to 0.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: f2ba7e8c94 ("vfio/fsl-mc: Added lock support in preparation for interrupt handling")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Diana Craciun <diana.craciun@oss.nxp.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2020-10-19 07:09:41 -06:00
..
Kconfig
Makefile vfio/fsl-mc: Add irq infrastructure for fsl-mc devices 2020-10-12 11:33:06 -06:00
vfio_fsl_mc_intr.c vfio/fsl-mc: Fix the dead code in vfio_fsl_mc_set_irq_trigger 2020-10-15 12:46:08 -06:00
vfio_fsl_mc_private.h vfio/fsl-mc: Add read/write support for fsl-mc devices 2020-10-12 11:33:27 -06:00
vfio_fsl_mc.c vfio/fsl-mc: fix the return of the uninitialized variable ret 2020-10-19 07:09:41 -06:00