Skip to content

Commit

Permalink
driver: hv: dxgkrnl: Switch __get_task_comm() to strscpy()
Browse files Browse the repository at this point in the history
Error Logs:
drivers/hv/dxgkrnl/dxgvmbus.c: In function ‘dxgvmb_send_create_process’:
drivers/hv/dxgkrnl/dxgvmbus.c:693:9: error: implicit declaration of function ‘__get_task_comm’; did you mean ‘__set_task_comm’? [-Wimplicit-function-declaration]
  693 |         __get_task_comm(s, WIN_MAX_PATH, current);
      |         ^~~~~~~~~~~~~~~
      |         __set_task_comm

 * In 4cc0473, __get_task_comm() has been removed.
 * Switch to __get_task_comm() to strscpy().

Signed-off-by: Yang Jeong Hun <[email protected]>
  • Loading branch information
Nevuly committed Jan 20, 2025
1 parent d1c94ef commit e353882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hv/dxgkrnl/dxgvmbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ int dxgvmb_send_create_process(struct dxgprocess *process)
command->process_id = process->pid;
command->linux_process = 1;
s[0] = 0;
__get_task_comm(s, WIN_MAX_PATH, current);
strscpy(s, current->comm, WIN_MAX_PATH);
for (i = 0; i < WIN_MAX_PATH; i++) {
command->process_name[i] = s[i];
if (s[i] == 0)
Expand Down

0 comments on commit e353882

Please sign in to comment.