Revert "gtp: fix a potential NULL pointer dereference"

This reverts commit fa13bd9705.
This commit is contained in:
Ksawlii 2024-11-24 00:23:49 +01:00
parent 40f7c74cbc
commit eac4761f23

View file

@ -801,7 +801,7 @@ static struct sock *gtp_encap_enable_socket(int fd, int type,
sock = sockfd_lookup(fd, &err);
if (!sock) {
pr_debug("gtp socket fd=%d not found\n", fd);
return ERR_PTR(err);
return NULL;
}
sk = sock->sk;