WSL2-Linux-Kernel/drivers/vdpa/mlx5/core
Alex Dewar 05acc4beb2 vdpa/mlx5: Fix uninitialised variable in core/mr.c
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: 94abbccdf2 ("vdpa/mlx5: Add shared memory registration code")
Addresses-Coverity: ("Uninitialized variables")
Signed-off-by: Alex Dewar <alex.dewar@gmx.co.uk>
Link: https://lore.kernel.org/r/20200806185625.67344-1-alex.dewar@gmx.co.uk
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Eli Cohen <eli@mellanox.com>
2020-08-10 09:01:21 -04:00
..
mlx5_vdpa.h vdpa/mlx5: Add shared memory registration code 2020-08-05 19:00:24 -04:00
mlx5_vdpa_ifc.h vdpa/mlx5: Add hardware descriptive header file 2020-08-05 19:00:23 -04:00
mr.c vdpa/mlx5: Fix uninitialised variable in core/mr.c 2020-08-10 09:01:21 -04:00
resources.c vdpa/mlx5: Add shared memory registration code 2020-08-05 19:00:24 -04:00