Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141018
b: refs/heads/master
c: ee6cdab
h: refs/heads/master
v: v3
  • Loading branch information
Tom Zanussi authored and Ingo Molnar committed Mar 23, 2009
1 parent 580524a commit b968bde
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 75c8b417526529d0a7072e4d93ec99dbd483a6f4
refs/heads/master: ee6cdabc820a29bd607f38d9cb335c3ceddc673b
12 changes: 10 additions & 2 deletions trunk/kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,19 @@ static struct filter_pred *copy_pred(struct filter_pred *pred)
return NULL;

memcpy(new_pred, pred, sizeof(*pred));

if (pred->field_name) {
new_pred->field_name = kstrdup(pred->field_name, GFP_KERNEL);
if (!new_pred->field_name) {
kfree(new_pred);
return NULL;
}
}

if (pred->str_val) {
new_pred->str_val = kstrdup(pred->str_val, GFP_KERNEL);
new_pred->field_name = kstrdup(pred->field_name, GFP_KERNEL);
if (!new_pred->str_val) {
kfree(new_pred);
filter_free_pred(new_pred);
return NULL;
}
}
Expand Down

0 comments on commit b968bde

Please sign in to comment.