From: Rebecca Schultz Zavin Date: Wed, 29 Aug 2012 17:30:08 +0000 (-0700) Subject: gpu: ion: Fix bug in ion_free X-Git-Tag: firefly_0821_release~4090^2~681 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc37db4e3d058a7bc270560bc9c7f98cd2277848;p=firefly-linux-kernel-4.4.55.git gpu: ion: Fix bug in ion_free Change-Id: I9e92ed750c5cd5d0329ce1747e419c908e0f37ef Signed-off-by: Rebecca Schultz Zavin --- diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c index cde2d1c2dc59..9c0873701791 100644 --- a/drivers/gpu/ion/ion.c +++ b/drivers/gpu/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);