]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:51:57 +0000 (11:51 +0100)
commitdd616e2ae016cf0f1b09be45f00932f579e38598
tree84c107eee66a1326d2ade80e84690bc72976265e
parent89c2fd0d313efe95a9330a6ad2aee930a6a8a075
vdpa/mlx5: Fix error return in map_direct_mr()

commit 7ba08e81cb4aec9724ab7674a5de49e7a341062c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vdpa/mlx5/core/mr.c