Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143953
b: refs/heads/master
c: cc29c70
h: refs/heads/master
i:
  143951: e11fd56
v: v3
  • Loading branch information
Jean Delvare authored and David S. Miller committed Apr 22, 2009
1 parent 861e0b7 commit 0328d98
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 50b2ff1bc47baacb8e9882b2b2a74b240ddbeecf
refs/heads/master: cc29c70dd581f85ee7a3e7980fb031f90b90a2ab
6 changes: 4 additions & 2 deletions trunk/net/netrom/af_netrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,8 +1084,10 @@ static int nr_sendmsg(struct kiocb *iocb, struct socket *sock,

/* Build a packet - the conventional user limit is 236 bytes. We can
do ludicrously large NetROM frames but must not overflow */
if (len > 65536)
return -EMSGSIZE;
if (len > 65536) {
err = -EMSGSIZE;
goto out;
}

SOCK_DEBUG(sk, "NET/ROM: sendto: building packet.\n");
size = len + NR_NETWORK_LEN + NR_TRANSPORT_LEN;
Expand Down

0 comments on commit 0328d98

Please sign in to comment.