property may not be always defined. So let's skip trying to do something
with it in that case.

Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de>
---
 src/libdt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libdt.c b/src/libdt.c
index 302ca7a76375..ca0502ac9483 100644
--- a/src/libdt.c
+++ b/src/libdt.c
@@ -2397,6 +2397,8 @@ static struct udev_device *of_find_device_by_uuid(struct 
udev_device *parent,
                        property = "ID_PART_TABLE_UUID";
                else if (!strcmp(devtype, "partition"))
                        property = "ID_PART_ENTRY_UUID";
+               else
+                       continue;
 
                dev_uuid = udev_device_get_property_value(device, property);
                if (dev_uuid && !strcasecmp(dev_uuid, uuid))
-- 
2.39.2


Reply via email to