Skip to content

Commit a0631a4

Browse files
chenyanxzhusysopenci
authored andcommitted
Fix virtio device type error
Tracked-On: OAM-131934 Signed-off-by: chenyanxzhu <chenyanx.zhu@intel.com>
1 parent 7d5e2dc commit a0631a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

intel_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ int get_gpu_type(int fd)
304304
} else {
305305
type = GPU_GRP_TYPE_INTEL_IGPU_IDX;
306306
}
307-
} else if (strcmp(version->name, "xe")) {
307+
} else if (strcmp(version->name, "xe") == 0) {
308308
type = GPU_GRP_TYPE_INTEL_DGPU_IDX;
309309
} else if (strcmp(version->name, "virtio_gpu") == 0) {
310310
if (!isVirtioGpuPciDevice(fd)) {

0 commit comments

Comments
 (0)