1
0
Fork 0

check NULL

This commit is contained in:
illiliti 2020-08-02 15:50:17 +03:00
parent a41459e81c
commit 3700b9c642

View file

@ -414,6 +414,10 @@ static void udev_device_set_properties_from_bits(struct udev_device *udev_device
parent = udev_device_get_parent_with_subsystem_devtype(parent, "input", NULL);
}
if (!parent) {
return;
}
bits_cnt = populate_bit(bits, udev_device_get_property_value(parent, "EV"));
abs_cnt = populate_bit(abs_bits, udev_device_get_property_value(parent, "ABS"));
rel_cnt = populate_bit(rel_bits, udev_device_get_property_value(parent, "REL"));