Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169798
b: refs/heads/master
c: d99be40
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Nov 26, 2009
1 parent 5f03d0d commit e7af9e8
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: 470dda7417f284b9cfc96560b2acd98df63798a2
refs/heads/master: d99be40aff88722ab03ee295e4f6c13a4cca9a3d
10 changes: 8 additions & 2 deletions trunk/kernel/trace/trace_ksym.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,20 @@ static ssize_t ksym_trace_filter_write(struct file *file,
ksym_hbp_handler, true);
if (IS_ERR(entry->ksym_hbp))
entry->ksym_hbp = NULL;
if (!entry->ksym_hbp)

/* modified without problem */
if (entry->ksym_hbp) {
ret = 0;
goto out;
}
} else {
ret = 0;
}
/* Error or "symbol:---" case: drop it */
ksym_filter_entry_count--;
hlist_del_rcu(&(entry->ksym_hlist));
synchronize_rcu();
kfree(entry);
ret = 0;
goto out;
} else {
/* Check for malformed request: (4) */
Expand Down

0 comments on commit e7af9e8

Please sign in to comment.