Merge f60913a38d on remote branch

Change-Id: Ib69ac8da64b77be3ea11ca3c17e0cb11553efeec
This commit is contained in:
Linux Build Service Account
2024-08-14 07:00:24 -07:00
2 changed files with 9 additions and 2 deletions

View File

@@ -344,8 +344,12 @@ int qcedev_check_and_map_buffer(void *handle,
return 0;
unmap:
if (!found)
if (!found) {
qcedev_unmap_buffer(handle, mem_client, binfo);
mutex_lock(&qce_hndl->registeredbufs.lock);
list_del(&binfo->list);
mutex_unlock(&qce_hndl->registeredbufs.lock);
}
error:
kfree(binfo);

View File

@@ -2750,8 +2750,11 @@ start_waiting_for_requests:
}
} while (!cb_txn);
out:
if (server_info)
if (server_info) {
mutex_lock(&g_smcinvoke_lock);
kref_put(&server_info->ref_cnt, destroy_cb_server);
mutex_unlock(&g_smcinvoke_lock);
}
if (ret && ret != -ERESTARTSYS)
pr_err("accept thread returning with ret: %d\n", ret);