mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
gpu: ion: Fix bug in ion_free
Change-Id: I9e92ed750c5cd5d0329ce1747e419c908e0f37ef Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
This commit is contained in:
committed by
Arve Hjønnevåg
parent
3122d079e3
commit
bc37db4e3d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user