mirror of https://github.com/OpenIPC/firmware.git
35 lines
989 B
Diff
35 lines
989 B
Diff
--- linux-4.9.37/drivers/dma-buf/sw_sync.c 2017-07-12 16:42:41.000000000 +0300
|
|
+++ linux-4.9.y/drivers/dma-buf/sw_sync.c 2021-06-07 13:01:33.000000000 +0300
|
|
@@ -234,6 +234,13 @@
|
|
return true;
|
|
}
|
|
|
|
+static void timeline_fence_disable_signaling(struct fence *fence)
|
|
+{
|
|
+ struct sync_pt *pt = container_of(fence, struct sync_pt, base);
|
|
+
|
|
+ list_del_init(&pt->active_list);
|
|
+}
|
|
+
|
|
static void timeline_fence_value_str(struct fence *fence,
|
|
char *str, int size)
|
|
{
|
|
@@ -252,6 +259,7 @@
|
|
.get_driver_name = timeline_fence_get_driver_name,
|
|
.get_timeline_name = timeline_fence_get_timeline_name,
|
|
.enable_signaling = timeline_fence_enable_signaling,
|
|
+ .disable_signaling = timeline_fence_disable_signaling,
|
|
.signaled = timeline_fence_signaled,
|
|
.wait = fence_default_wait,
|
|
.release = timeline_fence_release,
|
|
@@ -316,8 +324,8 @@
|
|
}
|
|
|
|
sync_file = sync_file_create(&pt->base);
|
|
+ fence_put(&pt->base);
|
|
if (!sync_file) {
|
|
- fence_put(&pt->base);
|
|
err = -ENOMEM;
|
|
goto err;
|
|
}
|