Skip to content

Commit 11dcda9

Browse files
committed
Merge drm-misc/drm-misc-next-fixes into drm-misc-fixes
There's a patch left in drm-misc-next-fixes, let's bring it into drm-misc-fixes. Signed-off-by: Maxime Ripard <[email protected]>
2 parents a1ff5a7 + 291e4ba commit 11dcda9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ static int check_vgem(int fd)
2929
version.name = name;
3030

3131
ret = ioctl(fd, DRM_IOCTL_VERSION, &version);
32-
if (ret)
32+
if (ret || version.name_len != 4)
3333
return 0;
3434

35+
name[4] = '\0';
36+
3537
return !strcmp(name, "vgem");
3638
}
3739

0 commit comments

Comments
 (0)