summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma-buf/st-dma-fence.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma-buf/st-dma-fence.c b/drivers/dma-buf/st-dma-fence.c
index 6fbae6bf6576..e593064341c8 100644
--- a/drivers/dma-buf/st-dma-fence.c
+++ b/drivers/dma-buf/st-dma-fence.c
@@ -373,7 +373,7 @@ static int test_wait_timeout(void *arg)
373 struct wait_timer wt; 373 struct wait_timer wt;
374 int err = -EINVAL; 374 int err = -EINVAL;
375 375
376 timer_setup(&wt.timer, wait_timer, 0); 376 timer_setup_on_stack(&wt.timer, wait_timer, 0);
377 377
378 wt.f = mock_fence(); 378 wt.f = mock_fence();
379 if (!wt.f) 379 if (!wt.f)
@@ -399,6 +399,7 @@ static int test_wait_timeout(void *arg)
399 err = 0; 399 err = 0;
400err_free: 400err_free:
401 del_timer_sync(&wt.timer); 401 del_timer_sync(&wt.timer);
402 destroy_timer_on_stack(&wt.timer);
402 dma_fence_signal(wt.f); 403 dma_fence_signal(wt.f);
403 dma_fence_put(wt.f); 404 dma_fence_put(wt.f);
404 return err; 405 return err;