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 2e431b2 commit 61af39eCopy full SHA for 61af39e
drivers/virt/acrn/ioreq.c
@@ -433,7 +433,7 @@ struct acrn_ioreq_client *acrn_ioreq_client_create(struct acrn_vm *vm,
433
client->priv = priv;
434
client->is_default = is_default;
435
if (name)
436
- strncpy(client->name, name, sizeof(client->name) - 1);
+ strscpy(client->name, name);
437
rwlock_init(&client->range_lock);
438
INIT_LIST_HEAD(&client->range_list);
439
init_waitqueue_head(&client->wq);
0 commit comments