diff --git a/src/nvme/fabrics.c b/src/nvme/fabrics.c index 1f50229f..ac639bdf 100644 --- a/src/nvme/fabrics.c +++ b/src/nvme/fabrics.c @@ -1297,6 +1297,8 @@ static int uuid_from_dmi_entries(char *system_uuid) continue; len = read(f, buf, 512); close(f); + if (len <= 0) + continue; if (!is_dmi_uuid_valid(buf, len)) continue;