search for: 94abbccdf291

Displaying 2 results from an estimated 2 matches for "94abbccdf291".

2020 Aug 07
0
[PATCH] vdpa/mlx5: Fix uninitialised variable in core/mr.c
On 2020/8/7 ??2:56, Alex Dewar wrote: > If the kernel is unable to allocate memory for the variable dmr then > err will be returned without being set. Set err to -ENOMEM in this > case. > > Fixes: 94abbccdf291 ("vdpa/mlx5: Add shared memory registration code") > Addresses-Coverity: ("Uninitialized variables") > Signed-off-by: Alex Dewar <alex.dewar at gmx.co.uk> Acked-by: Jason Wang <jasowang at redhat.com> > --- > drivers/vdpa/mlx5/core/mr.c | 4 +++- &gt...
2020 Aug 08
0
[PATCH] vdpa/mlx5: Missing error code on allocation failure
This should return -ENOMEM if the allocation fails. Currently it either returns success or an uninitialized value. Fixes: 94abbccdf291 ("vdpa/mlx5: Add shared memory registration code") Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com> --- drivers/vdpa/mlx5/core/mr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/mlx5/core/mr.c b/drivers/vdpa/mlx5/core/mr.c index f5dec...