From: Chenbo Feng Date: Wed, 26 Apr 2017 23:41:23 +0000 (-0700) Subject: bpf: Fix inaccurate helper function description X-Git-Tag: v4.14-rc1~1025^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d4e3443287b28a6e9c3436adbadba2497880bd1;p=platform%2Fkernel%2Flinux-rpi.git bpf: Fix inaccurate helper function description The description inside uapi/linux/bpf.h about bpf_get_socket_uid helper function is no longer valid. It returns overflowuid rather than 0 when failed. Signed-off-by: Chenbo Feng Acked-by: Daniel Borkmann Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller --- diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index e553529..945a1f5 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -481,8 +481,7 @@ union bpf_attr { * u32 bpf_get_socket_uid(skb) * Get the owner uid of the socket stored inside sk_buff. * @skb: pointer to skb - * Return: uid of the socket owner on success or 0 if the socket pointer - * inside sk_buff is NULL + * Return: uid of the socket owner on success or overflowuid if failed. */ #define __BPF_FUNC_MAPPER(FN) \ FN(unspec), \