]> www.infradead.org Git - users/dwmw2/linux.git/commit
gtp: allow -1 to be specified as file description from userspace
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Oct 2024 14:48:25 +0000 (16:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Oct 2024 18:24:08 +0000 (11:24 -0700)
commit7515e37bce5c428a56a9b04ea7e96b3f53f17150
treec279a81ea4f771714b18b7fb8c3bf77307ea6bae
parent01e215975fd80af81b5b79f009d49ddd35976c13
gtp: allow -1 to be specified as file description from userspace

Existing user space applications maintained by the Osmocom project are
breaking since a recent fix that addresses incorrect error checking.

Restore operation for user space programs that specify -1 as file
descriptor to skip GTPv0 or GTPv1 only sockets.

Fixes: defd8b3c37b0 ("gtp: fix a potential NULL pointer dereference")
Reported-by: Pau Espin Pedrol <pespin@sysmocom.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Tested-by: Oliver Smith <osmith@sysmocom.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241022144825.66740-1-pablo@netfilter.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/gtp.c