vdpa/mlx5: Don't clear mr struct on destroy MR
authorEli Cohen <elic@nvidia.com>
Mon, 6 Feb 2023 12:19:56 +0000 (14:19 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:59 +0000 (19:26 -0500)
commitaef24311bd2d8a6d39a80c34f278b0fd1692aed3
treec4022f527fce5de3546fcaa4e4eda921575537fe
parent446062e6adc48f1e963ce57621b5bfcbf999cda7
vdpa/mlx5: Don't clear mr struct on destroy MR

Clearing the mr struct erases the lock owner and causes warnings to be
emitted. It is not required to clear the mr so remove the memset call.

Fixes: 94abbccdf291 ("vdpa/mlx5: Add shared memory registration code")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20230206121956.1149356-1-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/core/mr.c