diff options
author | Christoph Hellwig <hch@lst.de> | 2022-05-18 10:40:01 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-05-18 06:18:56 -0600 |
commit | 984824db844a9bd6e9e15ee469241982526a6ccd (patch) | |
tree | 3b3cf90baa77bd113193170443045f6eb3e54d48 /crypto | |
parent | 20cbd21d899b72765e38481a926c7b2008c64350 (diff) | |
download | linux-984824db844a9bd6e9e15ee469241982526a6ccd.tar.bz2 |
io_uring: don't use ERR_PTR for user pointers
ERR_PTR abuses the high bits of a pointer to transport error information.
This is only safe for kernel pointers and not user pointers. Fix
io_buffer_select and its helpers to just return NULL for failure and get
rid of this abuse.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220518084005.3255380-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions