diff options
author | John Fastabend <john.fastabend@gmail.com> | 2017-08-15 23:35:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-16 11:35:14 -0700 |
commit | cf9d01405925e3f8144c99d7bf7b184449794066 (patch) | |
tree | dc5184ad35fb003e81db458315b5768bfb26c18a /block/bio.c | |
parent | ef70f9a22dd175f3732f98a95a7bd870b6d96492 (diff) |
bpf: devmap: remove unnecessary value size check
In the devmap alloc map logic we check to ensure that the sizeof the
values are not greater than KMALLOC_MAX_SIZE. But, in the dev map case
we ensure the value size is 4bytes earlier in the function because all
values should be netdev ifindex values.
The second check is harmless but is not needed so remove it.
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/bio.c')
0 files changed, 0 insertions, 0 deletions