projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fcb9d1
)
io_uring/net: correct the type of variable
author
Muhammad Usama Anjum
<usama.anjum@collabora.com>
Fri, 1 Mar 2024 14:43:48 +0000
(19:43 +0500)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 4 Mar 2024 23:33:11 +0000
(16:33 -0700)
The namelen is of type int. It shouldn't be made size_t which is
unsigned. The signed number is needed for error checking before use.
Fixes:
c55978024d12
("io_uring/net: move receive multishot out of the generic msghdr path")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link:
https://lore.kernel.org/r/20240301144349.2807544-1-usama.anjum@collabora.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
patch
|
blob
|
history
diff --git
a/io_uring/net.c
b/io_uring/net.c
index
8b9a9f5
..
40d4542
100644
(file)
--- a/
io_uring/net.c
+++ b/
io_uring/net.c
@@
-551,7
+551,7
@@
int io_send(struct io_kiocb *req, unsigned int issue_flags)
static int io_recvmsg_mshot_prep(struct io_kiocb *req,
struct io_async_msghdr *iomsg,
-
size_
t namelen, size_t controllen)
+
in
t namelen, size_t controllen)
{
if ((req->flags & (REQ_F_APOLL_MULTISHOT|REQ_F_BUFFER_SELECT)) ==
(REQ_F_APOLL_MULTISHOT|REQ_F_BUFFER_SELECT)) {