]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: report errors about missing integer properties
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Nov 2020 10:17:48 +0000 (10:17 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Nov 2020 16:55:07 +0000 (16:55 +0000)
commit3fba30fc82a3f4286ec12e56c75b217e3a19abb0
tree6de06dc19d51c38603588bd634eca791cc45aafc
parentb3a239531330017207552b5d486509ce0b3cd4fb
nodedev: report errors about missing integer properties

The helper methods for getting integer properties ignore a missing
property setting its value to zero. This lack of error reporting
resulted in missing the regression handling hotplug of USB devices
with the vendor and model IDs getting set to zero silently.

The few callers which relied on this silent defaulting have been fixed,
so now we can report fatal errors immediately.

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/node_device/node_device_udev.c