We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989e503 commit 6fa92e2Copy full SHA for 6fa92e2
drivers/staging/android/ion/ion.c
@@ -1179,13 +1179,13 @@ struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd)
1179
mutex_unlock(&client->lock);
1180
goto end;
1181
}
1182
- mutex_unlock(&client->lock);
1183
1184
handle = ion_handle_create(client, buffer);
1185
- if (IS_ERR(handle))
+ if (IS_ERR(handle)) {
+ mutex_unlock(&client->lock);
1186
1187
+ }
1188
- mutex_lock(&client->lock);
1189
ret = ion_handle_add(client, handle);
1190
1191
if (ret) {
0 commit comments