summaryrefslogtreecommitdiff
path: root/fs/ceph/snap.c
diff options
context:
space:
mode:
authorAlex Dewar <alex.dewar@gmx.co.uk>2020-08-06 21:56:15 +0300
committerMichael S. Tsirkin <mst@redhat.com>2020-08-10 16:01:21 +0300
commit05acc4beb24c7e5ed3ae20a3d3ab2b29b40cb385 (patch)
tree2bbc1c3defa4f67ddcc1718e8c12ec69d7853863 /fs/ceph/snap.c
parent1e3e792650d2c0df8dd796906275b7c79e278664 (diff)
downloadlinux-05acc4beb24c7e5ed3ae20a3d3ab2b29b40cb385.tar.xz
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: 94abbccdf291 ("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>
Diffstat (limited to 'fs/ceph/snap.c')
0 files changed, 0 insertions, 0 deletions