diff options
Diffstat (limited to 'drivers/dma-buf/sw_sync.c')
-rw-r--r-- | drivers/dma-buf/sw_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c index 82e0ca4dd0c1..69c5ff36e2f9 100644 --- a/drivers/dma-buf/sw_sync.c +++ b/drivers/dma-buf/sw_sync.c | |||
@@ -84,7 +84,7 @@ static inline struct sync_pt *dma_fence_to_sync_pt(struct dma_fence *fence) | |||
84 | * Creates a new sync_timeline. Returns the sync_timeline object or NULL in | 84 | * Creates a new sync_timeline. Returns the sync_timeline object or NULL in |
85 | * case of error. | 85 | * case of error. |
86 | */ | 86 | */ |
87 | struct sync_timeline *sync_timeline_create(const char *name) | 87 | static struct sync_timeline *sync_timeline_create(const char *name) |
88 | { | 88 | { |
89 | struct sync_timeline *obj; | 89 | struct sync_timeline *obj; |
90 | 90 | ||
@@ -316,8 +316,8 @@ static long sw_sync_ioctl_create_fence(struct sync_timeline *obj, | |||
316 | } | 316 | } |
317 | 317 | ||
318 | sync_file = sync_file_create(&pt->base); | 318 | sync_file = sync_file_create(&pt->base); |
319 | dma_fence_put(&pt->base); | ||
319 | if (!sync_file) { | 320 | if (!sync_file) { |
320 | dma_fence_put(&pt->base); | ||
321 | err = -ENOMEM; | 321 | err = -ENOMEM; |
322 | goto err; | 322 | goto err; |
323 | } | 323 | } |