diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_events_filter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index 9d2162fd2305..49b3ef54ec46 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c | |||
@@ -419,12 +419,13 @@ int filter_parse(char **pbuf, struct filter_pred *pred) | |||
419 | if (!pred->field_name) | 419 | if (!pred->field_name) |
420 | return -ENOMEM; | 420 | return -ENOMEM; |
421 | 421 | ||
422 | pred->val = simple_strtoull(val_str, &tmp, 10); | 422 | pred->val = simple_strtoull(val_str, &tmp, 0); |
423 | if (tmp == val_str) { | 423 | if (tmp == val_str) { |
424 | pred->str_val = kstrdup(val_str, GFP_KERNEL); | 424 | pred->str_val = kstrdup(val_str, GFP_KERNEL); |
425 | if (!pred->str_val) | 425 | if (!pred->str_val) |
426 | return -ENOMEM; | 426 | return -ENOMEM; |
427 | } | 427 | } else if (*tmp != '\0') |
428 | return -EINVAL; | ||
428 | 429 | ||
429 | return 0; | 430 | return 0; |
430 | } | 431 | } |