Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298777
b: refs/heads/master
c: bcf1b70
h: refs/heads/master
i:
  298775: 2008584
v: v3
  • Loading branch information
Sasha Levin authored and David S. Miller committed Apr 5, 2012
1 parent 644fbaf commit 9bfc1c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35f9c09fe9c72eb8ca2b8e89a593e1c151f28fc2
refs/heads/master: bcf1b70ac6eb0ed8286c66e6bf37cb747cbaa04c
3 changes: 3 additions & 0 deletions trunk/net/phonet/pep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,9 @@ static int pep_sendmsg(struct kiocb *iocb, struct sock *sk,
int flags = msg->msg_flags;
int err, done;

if (len > USHRT_MAX)
return -EMSGSIZE;

if ((msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_NOSIGNAL|
MSG_CMSG_COMPAT)) ||
!(msg->msg_flags & MSG_EOR))
Expand Down

0 comments on commit 9bfc1c1

Please sign in to comment.