Revert "gtp: fix a potential NULL pointer dereference"
This reverts commit fa13bd9705
.
This commit is contained in:
parent
40f7c74cbc
commit
eac4761f23
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue