vdpa/mlx5: Directly assign memory key
authorEli Cohen <elic@nvidia.com>
Sun, 5 Feb 2023 07:29:06 +0000 (09:29 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:59 +0000 (19:26 -0500)
commit446062e6adc48f1e963ce57621b5bfcbf999cda7
tree120de1c602bd509c497defc3e990d85c59c1ba00
parent0d0ed4006127714e318c9a9d7796f5c8532a21e7
vdpa/mlx5: Directly assign memory key

When creating a memory key, the key value should be assigned to the
passed pointer and not or'ed to.

No functional issue was observed due to this bug.

Fixes: 29064bfdabd5 ("vdpa/mlx5: Add support library for mlx5 VDPA implementation")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20230205072906.1108194-1-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/core/resources.c