Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81857
b: refs/heads/master
c: 8cf8e5a
h: refs/heads/master
i:
  81855: 30b0743
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Feb 1, 2008
1 parent ce41331 commit b72b265
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 406a1d868001423c85a3165288e566e65f424fe6
refs/heads/master: 8cf8e5a67fb07f583aac94482ba51a7930dab493
11 changes: 6 additions & 5 deletions trunk/net/ipv4/inet_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ static int inet_diag_get_exact(struct sk_buff *in_skb,
const struct inet_diag_handler *handler;

handler = inet_diag_lock_handler(nlh->nlmsg_type);
if (!handler)
return -ENOENT;
if (IS_ERR(handler)) {
err = PTR_ERR(handler);
goto unlock;
}

hashinfo = handler->idiag_hashinfo;
err = -EINVAL;
Expand Down Expand Up @@ -708,8 +710,8 @@ static int inet_diag_dump(struct sk_buff *skb, struct netlink_callback *cb)
struct inet_hashinfo *hashinfo;

handler = inet_diag_lock_handler(cb->nlh->nlmsg_type);
if (!handler)
goto no_handler;
if (IS_ERR(handler))
goto unlock;

hashinfo = handler->idiag_hashinfo;

Expand Down Expand Up @@ -838,7 +840,6 @@ static int inet_diag_dump(struct sk_buff *skb, struct netlink_callback *cb)
cb->args[2] = num;
unlock:
inet_diag_unlock_handler(handler);
no_handler:
return skb->len;
}

Expand Down

0 comments on commit b72b265

Please sign in to comment.