summaryrefslogtreecommitdiff
path: root/include/linux/zstd_errors.h
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2026-01-23 00:45:04 +0300
committerJens Axboe <axboe@kernel.dk>2026-01-23 01:58:17 +0300
commit82dadc8a494758093e775336390cb31033c6f9a3 (patch)
treea3f54f20b975476e5b44ab9b17bd5c7a37ac5fd5 /include/linux/zstd_errors.h
parent5247c034a67f5a93cc1faa15e9867eec5b22f38a (diff)
downloadlinux-82dadc8a494758093e775336390cb31033c6f9a3.tar.xz
io_uring/rsrc: take unsigned index in io_rsrc_node_lookup()
io_rsrc_node_lookup() takes a signed int index as input and compares it to an unsigned length. Since the signed int is implicitly cast to an unsigned int for the comparison and the length is bounded by IORING_MAX_FIXED_FILES/IORING_MAX_REG_BUFFERS, negative indices are already rejected on architectures where int is at least 32 bits. Make this a bit clearer and avoid compiler warnings for comparisons of signed and unsigned values by taking an unsigned int index instead. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions