Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347308
b: refs/heads/master
c: 4e4b537
h: refs/heads/master
v: v3
  • Loading branch information
Hannes Frederic Sowa authored and David S. Miller committed Dec 18, 2012
1 parent 702f733 commit 3b96593
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: 9f1e0ad0ad3e19fce3df864502e9f419204397d7
refs/heads/master: 4e4b53768f1ddce38b7f6edcad3a063020ef0024
3 changes: 3 additions & 0 deletions trunk/net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ static int netlink_bind(struct socket *sock, struct sockaddr *addr,
struct sockaddr_nl *nladdr = (struct sockaddr_nl *)addr;
int err;

if (addr_len < sizeof(struct sockaddr_nl))
return -EINVAL;

if (nladdr->nl_family != AF_NETLINK)
return -EINVAL;

Expand Down

0 comments on commit 3b96593

Please sign in to comment.