Skip to content

Commit adc8df1

Browse files
ummakynesPaolo Abeni
authored andcommitted
gtp: uapi: fix GTPA_MAX
Subtract one to __GTPA_MAX, otherwise GTPA_MAX is off by 2. Fixes: 459aa66 ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 9644bc4 commit adc8df1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/uapi/linux/gtp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ enum gtp_attrs {
3333
GTPA_PAD,
3434
__GTPA_MAX,
3535
};
36-
#define GTPA_MAX (__GTPA_MAX + 1)
36+
#define GTPA_MAX (__GTPA_MAX - 1)
3737

3838
#endif /* _UAPI_LINUX_GTP_H_ */

0 commit comments

Comments
 (0)