Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231900
b: refs/heads/master
c: 5e50732
h: refs/heads/master
v: v3
  • Loading branch information
Kurt Van Dijck authored and David S. Miller committed Jan 16, 2011
1 parent 373fbc2 commit 7361c54
Show file tree
Hide file tree
Showing 3 changed files with 7 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: d78c68efa84ff312f3663dbf921b1e3485232205
refs/heads/master: 5e5073280379d38e86ade471daa7443b553fc839
3 changes: 3 additions & 0 deletions trunk/net/can/bcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,9 @@ static int bcm_sendmsg(struct kiocb *iocb, struct socket *sock,
struct sockaddr_can *addr =
(struct sockaddr_can *)msg->msg_name;

if (msg->msg_namelen < sizeof(*addr))
return -EINVAL;

if (addr->can_family != AF_CAN)
return -EINVAL;

Expand Down
3 changes: 3 additions & 0 deletions trunk/net/can/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ static int raw_sendmsg(struct kiocb *iocb, struct socket *sock,
struct sockaddr_can *addr =
(struct sockaddr_can *)msg->msg_name;

if (msg->msg_namelen < sizeof(*addr))
return -EINVAL;

if (addr->can_family != AF_CAN)
return -EINVAL;

Expand Down

0 comments on commit 7361c54

Please sign in to comment.