vdpa_sim: init iommu lock
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Aug 2020 12:44:43 +0000 (08:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:40 +0000 (13:07 +0200)
commit9260a439b91059d9ab6752802f48494792fa1189
tree469ba04cc0e29a3491284161908c056b2a6b9cd3
parentb42f4550febec776275102da880155f1531a3948
vdpa_sim: init iommu lock

[ Upstream commit 1e3e792650d2c0df8dd796906275b7c79e278664 ]

The patch adding the iommu lock did not initialize it.
The struct is zero-initialized so this is mostly a problem
when using lockdep.

Reported-by: kernel test robot <rong.a.chen@intel.com>
Cc: Max Gurtovoy <maxg@mellanox.com>
Fixes: 0ea9ee430e74 ("vdpasim: protect concurrent access to iommu iotlb")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vdpa/vdpa_sim/vdpa_sim.c