projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43af940
)
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
David S. Miller
<davem@davemloft.net>
Wed, 7 Dec 2011 18:29:04 +0000
(13:29 -0500)
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>
drivers/net/ppp/pptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ppp/pptp.c
b/drivers/net/ppp/pptp.c
index
89f829f
..
f8a6853
100644
(file)
--- a/
drivers/net/ppp/pptp.c
+++ b/
drivers/net/ppp/pptp.c
@@
-423,10
+423,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;