diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-04-30 13:19:52 -0700 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2024-05-02 16:41:03 -0700 |
commit | 087d757fb4736ecbd3e42eebf9b39d5225d4a2ee (patch) | |
tree | f3cbe0b31c148fc7e2957e0bb2874ab8c4d10a6c /tools/lib/bpf/Build | |
parent | 00f0e08f23fc007f4a5a71cd7e37fcdb15af0c1b (diff) | |
download | linux-087d757fb4736ecbd3e42eebf9b39d5225d4a2ee.tar.gz linux-087d757fb4736ecbd3e42eebf9b39d5225d4a2ee.tar.bz2 linux-087d757fb4736ecbd3e42eebf9b39d5225d4a2ee.zip |
libbpf: fix ring_buffer__consume_n() return result logic
Add INT_MAX check to ring_buffer__consume_n(). We do the similar check
to handle int return result of all these ring buffer APIs in other APIs
and ring_buffer__consume_n() is missing one. This patch fixes this
omission.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20240430201952.888293-2-andrii@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/lib/bpf/Build')
0 files changed, 0 insertions, 0 deletions