io_uring/net: fix must_hold annotation
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 24 Aug 2022 12:07:38 +0000 (13:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Aug 2022 14:57:00 +0000 (08:57 -0600)
commit2cacedc873ab5f5945d8f1b71804b0bcea0383ff
tree9dc9f7d2e580f4feedc1d16babd59679594900fd
parenta9c3eda7eada94e8cf29cb102aa80e1370d8fa2e
io_uring/net: fix must_hold annotation

Fix up the io_alloc_notif()'s __must_hold as we don't have a ctx
argument there but should get it from the slot instead.

Reported-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cbb0a920f18e0aed590bf58300af817b9befb8a3.1661342812.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/notif.c