Re: [PATCH] vfio/fsl-mc: fix the return of the uninitialized variable ret

2020-10-16 Thread Colin Ian King
On 16/10/2020 10:26, Diana Craciun OSS wrote: > On 10/15/2020 9:52 PM, Alex Williamson wrote: >> On Thu, 15 Oct 2020 13:22:26 +0100 >> Colin King wrote: >> >>> From: Colin Ian King >>> >>> Currently the success path in function vfio_fsl_mc_reflck_attach is >>> returning an uninitialized value in

Re: [PATCH] vfio/fsl-mc: fix the return of the uninitialized variable ret

2020-10-16 Thread Diana Craciun OSS
On 10/15/2020 9:52 PM, Alex Williamson wrote: On Thu, 15 Oct 2020 13:22:26 +0100 Colin King wrote: From: Colin Ian King Currently the success path in function vfio_fsl_mc_reflck_attach is returning an uninitialized value in variable ret. Fix this by setting this to zero to indicate success.

Re: [PATCH] vfio/fsl-mc: fix the return of the uninitialized variable ret

2020-10-15 Thread Alex Williamson
On Thu, 15 Oct 2020 13:22:26 +0100 Colin King wrote: > From: Colin Ian King > > Currently the success path in function vfio_fsl_mc_reflck_attach is > returning an uninitialized value in variable ret. Fix this by setting > this to zero to indicate success. > > Addresses-Coverity: ("Uninitialize

[PATCH] vfio/fsl-mc: fix the return of the uninitialized variable ret

2020-10-15 Thread Colin King
From: Colin Ian King Currently the success path in function vfio_fsl_mc_reflck_attach is returning an uninitialized value in variable ret. Fix this by setting this to zero to indicate success. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: f2ba7e8c947b ("vfio/fsl-mc: Added lock sup