diff options
| -rw-r--r-- | kernel/trace/trace_events_hist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c index 06e7b9f66de6..2b76f9520bd0 100644 --- a/kernel/trace/trace_events_hist.c +++ b/kernel/trace/trace_events_hist.c | |||
| @@ -59,7 +59,7 @@ | |||
| 59 | C(NO_CLOSING_PAREN, "No closing paren found"), \ | 59 | C(NO_CLOSING_PAREN, "No closing paren found"), \ |
| 60 | C(SUBSYS_NOT_FOUND, "Missing subsystem"), \ | 60 | C(SUBSYS_NOT_FOUND, "Missing subsystem"), \ |
| 61 | C(INVALID_SUBSYS_EVENT, "Invalid subsystem or event name"), \ | 61 | C(INVALID_SUBSYS_EVENT, "Invalid subsystem or event name"), \ |
| 62 | C(INVALID_REF_KEY, "Using variable references as keys not supported"), \ | 62 | C(INVALID_REF_KEY, "Using variable references in keys not supported"), \ |
| 63 | C(VAR_NOT_FOUND, "Couldn't find variable"), \ | 63 | C(VAR_NOT_FOUND, "Couldn't find variable"), \ |
| 64 | C(FIELD_NOT_FOUND, "Couldn't find field"), | 64 | C(FIELD_NOT_FOUND, "Couldn't find field"), |
| 65 | 65 | ||
| @@ -4506,7 +4506,7 @@ static int create_key_field(struct hist_trigger_data *hist_data, | |||
| 4506 | goto out; | 4506 | goto out; |
| 4507 | } | 4507 | } |
| 4508 | 4508 | ||
| 4509 | if (hist_field->flags & HIST_FIELD_FL_VAR_REF) { | 4509 | if (field_has_hist_vars(hist_field, 0)) { |
| 4510 | hist_err(tr, HIST_ERR_INVALID_REF_KEY, errpos(field_str)); | 4510 | hist_err(tr, HIST_ERR_INVALID_REF_KEY, errpos(field_str)); |
| 4511 | destroy_hist_field(hist_field, 0); | 4511 | destroy_hist_field(hist_field, 0); |
| 4512 | ret = -EINVAL; | 4512 | ret = -EINVAL; |
