Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203655
b: refs/heads/master
c: 4b70637
h: refs/heads/master
i:
  203653: 4a8f08c
  203651: bc706a5
  203647: de843db
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Jul 20, 2010
1 parent 52ce80b commit 70dbdc3
Show file tree
Hide file tree
Showing 2 changed files with 9 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: d79d991379af35d43f003f162e8650e72965b8ca
refs/heads/master: 4b706372f18de53970e4c6887a96459590fef80a
10 changes: 8 additions & 2 deletions trunk/net/core/drop_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ static int set_all_monitor_traces(int state)

spin_lock(&trace_state_lock);

if (state == trace_state) {
rc = -EAGAIN;
goto out_unlock;
}

switch (state) {
case TRACE_ON:
rc |= register_trace_kfree_skb(trace_kfree_skb_hit, NULL);
Expand Down Expand Up @@ -251,11 +256,12 @@ static int set_all_monitor_traces(int state)

if (!rc)
trace_state = state;
else
rc = -EINPROGRESS;

out_unlock:
spin_unlock(&trace_state_lock);

if (rc)
return -EINPROGRESS;
return rc;
}

Expand Down

0 comments on commit 70dbdc3

Please sign in to comment.