diff options
author | Hou Tao <[email protected]> | 2023-07-04 15:40:14 +0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-07-05 14:09:45 +0200 |
commit | cf6eeb8f9dace014f63a3b2e959d0922bf737233 (patch) | |
tree | d2efd5fe22d2bc2c637beab4c7a46268fcf77d64 /drivers/fpga/fpga-mgr.c | |
parent | c20f9cef725bc6b19efe372696e8000fb5af0d46 (diff) |
bpf: Remove unnecessary ring buffer size check
The theoretical maximum size of ring buffer is about 64GB, but now the
size of ring buffer is specified by max_entries in bpf_attr and its
maximum value is (4GB - 1), and it won't be possible for overflow.
So just remove the unnecessary size check in ringbuf_map_alloc() but
keep the comments for possible extension in future.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Hou Tao <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Closes: https://lore.kernel.org/bpf/[email protected]
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions