]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa_sim: init iommu lock
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Aug 2020 12:44:43 +0000 (08:44 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Aug 2020 12:44:47 +0000 (08:44 -0400)
commit9ab8d68ed50ae633b6ea18ab0114217f5b811fe7
tree57f8c569ab0f44f37ba929be03de3cc326e4aedc
parentfd993117f27322dd6e8e64fe4ae5e201a4bf41e8
vdpa_sim: init iommu lock

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: f9d8b73a8508 ("vdpasim: protect concurrent access to iommu iotlb")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c