Skip to content

Commit be31428

Browse files
committed
ksmbd: fix type confusion via race condition when using ipc_msg_send_request
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
1 parent 3531733 commit be31428

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport_ipc.c

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ static int handle_response(int type, void *payload, size_t sz)
283283
if (entry->type + 1 != type) {
284284
pr_err("Waiting for IPC type %d, got %d. Ignore.\n",
285285
entry->type + 1, type);
286+
continue;
286287
}
287288

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

0 commit comments

Comments
 (0)