Skip to content

Commit

Permalink
ksmbd: fix type confusion via race condition when using ipc_msg_send_…
Browse files Browse the repository at this point in the history
…request

Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
namjaejeon committed Feb 21, 2025
1 parent 3531733 commit be31428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transport_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ static int handle_response(int type, void *payload, size_t sz)
if (entry->type + 1 != type) {
pr_err("Waiting for IPC type %d, got %d. Ignore.\n",
entry->type + 1, type);
continue;
}

entry->response = kvzalloc(sz, KSMBD_DEFAULT_GFP);
Expand Down

0 comments on commit be31428

Please sign in to comment.