diff options
| author | David S. Miller <davem@davemloft.net> | 2016-04-29 00:29:46 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-04-29 00:29:46 +0300 |
| commit | 1dfcd832b1a9ed45edac15b31d079b805fa0ae2a (patch) | |
| tree | d19ff13218ada2b400bece7a058919478afea9ce /include/linux | |
| parent | bd34cf66cc48a5fb17deb7a1494845c45d71ba8e (diff) | |
| parent | 569cc39d39385a74b23145496bca2df5ac8b2fb8 (diff) | |
| download | linux-1dfcd832b1a9ed45edac15b31d079b805fa0ae2a.tar.xz | |
Merge branch 'bpf-fixes'
Alexei Starovoitov says:
====================
bpf: fix several bugs
First two patches address bugs found by Jann Horn.
Last patch is a minor samples fix spotted during the testing.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bpf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 21ee41b92e8a..f1d5c5acc8dd 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -171,12 +171,13 @@ void bpf_register_prog_type(struct bpf_prog_type_list *tl); void bpf_register_map_type(struct bpf_map_type_list *tl); struct bpf_prog *bpf_prog_get(u32 ufd); +struct bpf_prog *bpf_prog_inc(struct bpf_prog *prog); void bpf_prog_put(struct bpf_prog *prog); void bpf_prog_put_rcu(struct bpf_prog *prog); struct bpf_map *bpf_map_get_with_uref(u32 ufd); struct bpf_map *__bpf_map_get(struct fd f); -void bpf_map_inc(struct bpf_map *map, bool uref); +struct bpf_map *bpf_map_inc(struct bpf_map *map, bool uref); void bpf_map_put_with_uref(struct bpf_map *map); void bpf_map_put(struct bpf_map *map); int bpf_map_precharge_memlock(u32 pages); |
