OSDN Git Service

io_uring/net: use the correct msghdr union member in io_sendmsg_copy_hdr
authorJens Axboe <axboe@kernel.dk>
Tue, 20 Jun 2023 22:11:51 +0000 (16:11 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2023 13:34:17 +0000 (07:34 -0600)
commit26fed83653d0154704cadb7afc418f315c7ac1f0
treeab86dcabe08071bb73102268a90e7dc0c329989b
parent78d0d2063bab954d19a1696feae4c7706a626d48
io_uring/net: use the correct msghdr union member in io_sendmsg_copy_hdr

Rather than assign the user pointer to msghdr->msg_control, assign it
to msghdr->msg_control_user to make sparse happy. They are in a union
so the end result is the same, but let's avoid new sparse warnings and
squash this one.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306210654.mDMcyMuB-lkp@intel.com/
Fixes: cac9e4418f4c ("io_uring/net: save msghdr->msg_control for retries")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c