Skip to content

Commit

Permalink
gtp: uapi: fix GTPA_MAX
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
  • Loading branch information
ummakynes authored and Paolo Abeni committed Oct 24, 2023
1 parent 9644bc4 commit adc8df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/gtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit adc8df1

Please sign in to comment.