Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273516
b: refs/heads/master
c: 501e89d
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones authored and David S. Miller committed Nov 2, 2011
1 parent 1ae0af7 commit 3c062a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 0a3360e1e18fc6bbe10bebe416db42de5fa02dbd
refs/heads/master: 501e89d3aef10f9a5b79137fbb0bcd5bf9cac2ac
11 changes: 8 additions & 3 deletions trunk/net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -1261,14 +1261,19 @@ static int x25_recvmsg(struct kiocb *iocb, struct socket *sock,
struct x25_sock *x25 = x25_sk(sk);
struct sockaddr_x25 *sx25 = (struct sockaddr_x25 *)msg->msg_name;
size_t copied;
int qbit, header_len = x25->neighbour->extended ?
X25_EXT_MIN_LEN : X25_STD_MIN_LEN;

int qbit, header_len;
struct sk_buff *skb;
unsigned char *asmptr;
int rc = -ENOTCONN;

lock_sock(sk);

if (x25->neighbour == NULL)
goto out;

header_len = x25->neighbour->extended ?
X25_EXT_MIN_LEN : X25_STD_MIN_LEN;

/*
* This works for seqpacket too. The receiver has ordered the queue for
* us! We do one quick check first though
Expand Down

0 comments on commit 3c062a7

Please sign in to comment.