From: Pablo Neira Ayuso Date: Sun, 22 Oct 2023 20:25:17 +0000 (+0200) Subject: gtp: uapi: fix GTPA_MAX X-Git-Tag: v6.6.17~3692^2~7^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adc8df12d91a2b8350b0cd4c7fec3e8546c9d1f8;p=platform%2Fkernel%2Flinux-rpi.git gtp: uapi: fix GTPA_MAX Subtract one to __GTPA_MAX, otherwise GTPA_MAX is off by 2. Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Paolo Abeni --- diff --git a/include/uapi/linux/gtp.h b/include/uapi/linux/gtp.h index 2f61298..3dcdb9e 100644 --- a/include/uapi/linux/gtp.h +++ b/include/uapi/linux/gtp.h @@ -33,6 +33,6 @@ enum gtp_attrs { GTPA_PAD, __GTPA_MAX, }; -#define GTPA_MAX (__GTPA_MAX + 1) +#define GTPA_MAX (__GTPA_MAX - 1) #endif /* _UAPI_LINUX_GTP_H_ */