io_uring: fix incorrect io_kiocb reference in io_link_skb
[ Upstream commit 2c139a47 ] In io_link_skb function, there is a bug where prev_notif is incorrectly assigned using 'nd' instead of 'prev_nd'. This causes the context validation check to compare the current notification with itself instead of comparing it with the previous notification. Fix by using the correct prev_nd parameter when obtaining prev_notif. Signed-off-by:Yang Xiuwei <yangxiuwei@kylinos.cn> Reviewed-by:
Pavel Begunkov <asml.silence@gmail.com> Fixes: 6fe42209 ("io_uring/notif: implement notification stacking") Signed-off-by:
Jens Axboe <axboe@kernel.dk> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading