Revert "kselftests: dmabuf-heaps: Ensure the driver name is null-terminated"

This reverts commit ef9faa21be.
This commit is contained in:
Ksawlii 2024-11-24 00:23:39 +01:00
parent 1944f01920
commit d8bf035cb4

View file

@ -29,11 +29,9 @@ static int check_vgem(int fd)
version.name = name;
ret = ioctl(fd, DRM_IOCTL_VERSION, &version);
if (ret || version.name_len != 4)
if (ret)
return 0;
name[4] = '\0';
return !strcmp(name, "vgem");
}