Commit 303cc74
io_uring: check that data field is 0 in ringfd unregister
Only allow data field to be 0 in struct io_uring_rsrc_update user
arguments to allow for future possible usage.
Fixes: e7a6c00 ("io_uring: add support for registering ring file descriptors")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Link: https://lore.kernel.org/r/20220429142218.GA28696@asgard.redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 32452a3 commit 303cc74
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10593 | 10593 | | |
10594 | 10594 | | |
10595 | 10595 | | |
10596 | | - | |
| 10596 | + | |
10597 | 10597 | | |
10598 | 10598 | | |
10599 | 10599 | | |
| |||
0 commit comments