From: Rebecca Schultz Zavin Date: Fri, 13 Dec 2013 22:24:02 +0000 (-0800) Subject: gpu: ion: Fix bug in ion_free X-Git-Tag: v3.14-rc1~13^2~457 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37bdbf00c618203467a17d01a4dfae324a818022;p=platform%2Fkernel%2Flinux-exynos.git gpu: ion: Fix bug in ion_free Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index f7dc821..e52522c 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -406,6 +406,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle) if (!valid_handle) { WARN(1, "%s: invalid handle passed to free.\n", __func__); + mutex_unlock(&client->lock); return; } ion_handle_put(handle);