gpu: ion: Fix bug in ion_free
authorRebecca Schultz Zavin <rebecca@android.com>
Wed, 29 Aug 2012 17:30:08 +0000 (10:30 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:05 +0000 (14:16 -0700)
Change-Id: I9e92ed750c5cd5d0329ce1747e419c908e0f37ef
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion.c

index cde2d1c2dc59e9edebe99096362d65661036ca75..9c08737017916c454bb8a2830ddb25c2f38725f5 100644 (file)
@@ -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);