diff options
| author | Xu Kuohai <[email protected]> | 2021-10-19 03:29:34 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-10-23 00:23:54 +0000 |
| commit | fda7a38714f40b635f5502ec4855602c6b33dad2 (patch) | |
| tree | 60783626fd08c9c63907db85ef69294c4eb1a26a /net/tls/tls_main.c | |
| parent | Merge branch 'Fix up bpf_jit_limit some more' (diff) | |
| download | kernel-fda7a38714f40b635f5502ec4855602c6b33dad2.tar.gz kernel-fda7a38714f40b635f5502ec4855602c6b33dad2.zip | |
bpf: Fix error usage of map_fd and fdget() in generic_map_update_batch()
1. The ufd in generic_map_update_batch() should be read from batch.map_fd;
2. A call to fdget() should be followed by a symmetric call to fdput().
Fixes: aa2e93b8e58e ("bpf: Add generic support for update and delete batch ops")
Signed-off-by: Xu Kuohai <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/tls/tls_main.c')
0 files changed, 0 insertions, 0 deletions
