]> git.ipfire.org Git - thirdparty/libvirt.git/commit
udevRemoveOneDevice: Unlock node device obj upon return
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Apr 2020 13:40:01 +0000 (15:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 22 Apr 2020 10:51:15 +0000 (12:51 +0200)
commit4c1033a15194ff8ef41dc4fe0f72713a274b810a
tree4b0bd5338bff07714a94d84b72c9ac628c801db9
parentc740ae69c382be18070282085d90b74ff0ef5fcb
udevRemoveOneDevice: Unlock node device obj upon return

When removing a node device object from the internal list the
udevRemoveOneDevice() function does plain unref over the object.
This is not sufficient. If there is another thread that's waiting
for the object lock it will wait forever.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/node_device/node_device_udev.c