[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <53EC8722.4070407@canonical.com>
Date: Thu, 14 Aug 2014 11:53:38 +0200
From: Maarten Lankhorst <maarten.lankhorst@...onical.com>
To: Sumit Semwal <sumit.semwal@...aro.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"linaro-mm-sig@...ts.linaro.org" <linaro-mm-sig@...ts.linaro.org>,
LKML <linux-kernel@...r.kernel.org>
CC: Daniel Vetter <daniel.vetter@...ll.ch>,
Colin Cross <ccross@...gle.com>,
John Stultz <john.stultz@...aro.org>,
devel@...verdev.osuosl.org
Subject: [PATCH 1/2] android: fix reference leak in sync_fence_create
According to the documentation sync_fence_create takes ownership of the point,
not a reference on the point.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@...onical.com>
Cc: Colin Cross <ccross@...gle.com>
---
drivers/staging/android/sync.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
index e7b2e0234196..69139ce7420d 100644
--- a/drivers/staging/android/sync.c
+++ b/drivers/staging/android/sync.c
@@ -199,7 +199,6 @@ struct sync_fence *sync_fence_create(const char *name, struct sync_pt *pt)
fence->num_fences = 1;
atomic_set(&fence->status, 1);
- fence_get(&pt->base);
fence->cbs[0].sync_pt = &pt->base;
fence->cbs[0].fence = fence;
if (fence_add_callback(&pt->base, &fence->cbs[0].cb,
--
2.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists