]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit1e3e792650d2c0df8dd796906275b7c79e278664
tree57f8c569ab0f44f37ba929be03de3cc326e4aedc
parentc84f91e2622235bb742f9f20b8675cf095157026
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: 0ea9ee430e74 ("vdpasim: protect concurrent access to iommu iotlb")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c