diff options
author | Takashi Iwai <tiwai@suse.de> | 2024-08-09 14:25:16 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-08-09 14:25:24 +0200 |
commit | 4004f3029e1f612903f03df497153c90a2752130 (patch) | |
tree | 236b0dc4d6ed7421aba5bfd426ac936a0d99721f /tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | |
parent | f6c9a097b55e1955e3dd35f1de4828d3ed67534c (diff) | |
parent | 9cacb32a0ba691c2859a20bd5e30b71cc592fad2 (diff) |
Merge branch 'topic/control-lookup-rwlock' into for-next
Pull control lookup optimization changes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c')
-rw-r--r-- | tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c index 5f541522364f..5d0a809dc2df 100644 --- a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +++ b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c @@ -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"); } |