|
@@ -450,7 +450,7 @@ static int create_val_field(struct hist_trigger_data *hist_data,
|
|
}
|
|
}
|
|
|
|
|
|
field = trace_find_event_field(file->event_call, field_name);
|
|
field = trace_find_event_field(file->event_call, field_name);
|
|
- if (!field) {
|
|
|
|
|
|
+ if (!field || !field->size) {
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
@@ -548,7 +548,7 @@ static int create_key_field(struct hist_trigger_data *hist_data,
|
|
}
|
|
}
|
|
|
|
|
|
field = trace_find_event_field(file->event_call, field_name);
|
|
field = trace_find_event_field(file->event_call, field_name);
|
|
- if (!field) {
|
|
|
|
|
|
+ if (!field || !field->size) {
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|