]> asedeno.scripts.mit.edu Git - linux.git/commit
android: fix reference leak in sync_fence_create
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 1 Sep 2014 12:47:35 +0000 (14:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:42:00 +0000 (13:42 -0700)
commit3ea411c56ef58a1827cf06fdcdeb14fa9265be09
treebfcb718d9cc134bcd780d93ed4c90c361c5b5979
parentd9fdb9fba7ec08769594abede8f78523ed3f025a
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.

This fixes a memory leak introduced in 3.17's android fence rework.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Colin Cross <ccross@google.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/sync.c