diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-07-20 10:50:43 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-07-20 07:50:42 -0600 |
commit | 68b11e8b1562986c134764433af64e97d30c9fc0 (patch) | |
tree | ce8fb3195acafbed4b79ad1a4a371402ba8770ec /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
parent | 1b48773f9fd09f311d1166ce1dd50652ebe05218 (diff) |
io_uring: explicitly count entries for poll reqs
If __io_queue_proc() fails to add a second poll entry, e.g. kmalloc()
failed, but it goes on with a third waitqueue, it may succeed and
overwrite the error status. Count the number of poll entries we added,
so we can set pt->error to zero at the beginning and find out when the
mentioned scenario happens.
Cc: stable@vger.kernel.org
Fixes: 18bceab101add ("io_uring: allow POLL_ADD with double poll_wait() users")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9d6b9e561f88bcc0163623b74a76c39f712151c3.1626774457.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions