io_uring: zero tag on rsrc removal
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 7 Apr 2022 13:05:04 +0000 (14:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:36:23 +0000 (09:36 +0200)
commit8568514a7abd90b7090dbecf2ac335a5c5877b90
tree1775e684b44248892ac1f5746eaeb34e0af00efd
parent440c44c3d6d58db7bb1ae36760b77672d6dde891
io_uring: zero tag on rsrc removal

[ Upstream commit 8f0a24801bb44aa58496945aabb904c729176772 ]

Automatically default rsrc tag in io_queue_rsrc_removal(), it's safer
than leaving it there and relying on the rest of the code to behave and
not use it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1cf262a50df17478ea25b22494dcc19f3a80301f.1649336342.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c