mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
gtp: uapi: fix GTPA_MAX
[ Upstream commitadc8df12d9] Subtract one to __GTPA_MAX, otherwise GTPA_MAX is off by 2. Fixes:459aa660eb("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
852fb4ce42
commit
c0dad0c092
@@ -32,6 +32,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_ */
|
||||
|
||||
Reference in New Issue
Block a user