projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3c5fb8
)
ppp: fix pptp double release_sock in pptp_bind()
author
Djalal Harouni
<tixxdz@opendz.org>
Tue, 6 Dec 2011 15:47:12 +0000
(15:47 +0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 6 Jan 2012 22:14:05 +0000
(14:14 -0800)
[ Upstream commit
a454daceb78844a09c08b6e2d8badcb76a5d73b9
]
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/pptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/pptp.c
b/drivers/net/pptp.c
index 1286fe212dc4585af3659ddb066d00e9283f2ce2..4b3a68b69a6744b96fc83658ee3f87d31c931776 100644
(file)
--- a/
drivers/net/pptp.c
+++ b/
drivers/net/pptp.c
@@
-418,10
+418,8
@@
static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr,
lock_sock(sk);
opt->src_addr = sp->sa_addr.pptp;
- if (add_chan(po)) {
- release_sock(sk);
+ if (add_chan(po))
error = -EBUSY;
- }
release_sock(sk);
return error;