Revert "kselftests: dmabuf-heaps: Ensure the driver name is null-terminated"
This reverts commit ef9faa21be
.
This commit is contained in:
parent
1944f01920
commit
d8bf035cb4
1 changed files with 1 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue