aboutsummaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-11-19 01:45:03 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-21 11:25:58 -0500
commit6d67942dd0ebc3dddc86edf9208169d064a9b3d7 (patch)
tree3ecd94250b15a5c118ca12d42ad688a87f84718f /net/socket.c
parentbpf, mlx5: drop priv->xdp_prog reference on netdev cleanup (diff)
downloadlinux-rng-6d67942dd0ebc3dddc86edf9208169d064a9b3d7.tar.xz
linux-rng-6d67942dd0ebc3dddc86edf9208169d064a9b3d7.zip
bpf: add __must_check attributes to refcount manipulating helpers
Helpers like bpf_prog_add(), bpf_prog_inc(), bpf_map_inc() can fail with an error, so make sure the caller properly checks their return value and not just ignores it, which could worst-case lead to use after free. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions