]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
vdpa/mlx5: Fix error return in map_direct_mr()
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Mon, 26 Oct 2020 07:06:37 +0000 (15:06 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 30 Oct 2020 08:02:34 +0000 (04:02 -0400)
commit7ba08e81cb4aec9724ab7674a5de49e7a341062c
treec094ab276a5c05cdbb7d7e6deb26ebeeeed02c02
parent7922460e33c81f41e0d2421417228b32e6fdbe94
vdpa/mlx5: Fix error return in map_direct_mr()

Fix to return the variable "err" from the error handling case instead
of "ret".

Fixes: 94abbccdf291 ("vdpa/mlx5: Add shared memory registration code")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Link: https://lore.kernel.org/r/20201026070637.164321-1-jingxiangfeng@huawei.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eli Cohen <elic@nvidia.com>
Cc: stable@vger.kernel.org
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/mlx5/core/mr.c