Commit e02b6651 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe
Browse files

io_uring: initialise msghdr::msg_ubuf

parent 4effe18f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -294,6 +294,7 @@ int io_send(struct io_kiocb *req, unsigned int issue_flags)
	msg.msg_control = NULL;
	msg.msg_controllen = 0;
	msg.msg_namelen = 0;
	msg.msg_ubuf = NULL;

	flags = sr->msg_flags;
	if (issue_flags & IO_URING_F_NONBLOCK)
@@ -783,6 +784,7 @@ int io_recv(struct io_kiocb *req, unsigned int issue_flags)
	msg.msg_flags = 0;
	msg.msg_controllen = 0;
	msg.msg_iocb = NULL;
	msg.msg_ubuf = NULL;

	flags = sr->msg_flags;
	if (force_nonblock)