Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63413
b: refs/heads/master
c: 8aeca8f
h: refs/heads/master
i:
  63411: d82f59f
v: v3
  • Loading branch information
Florian Zumbiehl authored and David S. Miller committed Jul 31, 2007
1 parent 1fba35a commit 734ac6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86c1dcfc96a778433ebc6e9b1d3e80a126cb80f2
refs/heads/master: 8aeca8fea5f2de2563e097829d62af30ca2de650
3 changes: 1 addition & 2 deletions trunk/drivers/net/pppoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ static int pppoe_sendmsg(struct kiocb *iocb, struct socket *sock,
struct net_device *dev;
char *start;

lock_sock(sk);
if (sock_flag(sk, SOCK_DEAD) || !(sk->sk_state & PPPOX_CONNECTED)) {
error = -ENOTCONN;
goto end;
Expand All @@ -784,8 +785,6 @@ static int pppoe_sendmsg(struct kiocb *iocb, struct socket *sock,
hdr.code = 0;
hdr.sid = po->num;

lock_sock(sk);

dev = po->pppoe_dev;

error = -EMSGSIZE;
Expand Down

0 comments on commit 734ac6e

Please sign in to comment.