Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278537
b: refs/heads/master
c: 6f8e4ad
h: refs/heads/master
i:
  278535: b021a41
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Dec 9, 2011
1 parent 6e36847 commit 06a7e25
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 865d9f9f748fdc1943679ea65d9ee1dc55e4a6ae
refs/heads/master: 6f8e4ad0eff5117ba895122674670f9c63b6e8d8
4 changes: 2 additions & 2 deletions trunk/net/core/sock_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int sock_diag_register(struct sock_diag_handler *hndl)
{
int err = 0;

if (hndl->family > AF_MAX)
if (hndl->family >= AF_MAX)
return -EINVAL;

mutex_lock(&sock_diag_table_mutex);
Expand All @@ -50,7 +50,7 @@ void sock_diag_unregister(struct sock_diag_handler *hnld)
{
int family = hnld->family;

if (family > AF_MAX)
if (family >= AF_MAX)
return;

mutex_lock(&sock_diag_table_mutex);
Expand Down

0 comments on commit 06a7e25

Please sign in to comment.