We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c65a8 commit 1b50e10Copy full SHA for 1b50e10
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
@@ -184,15 +184,14 @@ static int test_alloc_and_import(char *heap_name)
184
if (importer_fd < 0) {
185
ret = importer_fd;
186
printf("Failed to open vgem\n");
187
- goto out;
188
- }
189
-
190
- ret = import_vgem_fd(importer_fd, dmabuf_fd, &handle);
191
- if (ret < 0) {
192
- printf("Failed to import buffer\n");
193
+ } else {
+ ret = import_vgem_fd(importer_fd, dmabuf_fd, &handle);
+ if (ret < 0) {
+ printf("Failed to import buffer\n");
+ goto out;
+ }
+ printf("import passed\n");
194
}
195
- printf("import passed\n");
196
197
ret = dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START);
198
if (ret < 0) {
0 commit comments