mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
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 <mripard@kernel.org>
This commit is contained in:
commit
11dcda9b7a
|
|
@ -29,9 +29,11 @@ static int check_vgem(int fd)
|
|||
version.name = name;
|
||||
|
||||
ret = ioctl(fd, DRM_IOCTL_VERSION, &version);
|
||||
if (ret)
|
||||
if (ret || version.name_len != 4)
|
||||
return 0;
|
||||
|
||||
name[4] = '\0';
|
||||
|
||||
return !strcmp(name, "vgem");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user