diff options
-rw-r--r-- | kernel/trace/trace_events_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index 1d8192304842..b24ab0e6ea74 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c | |||
@@ -178,7 +178,7 @@ static int filter_pred_string(struct filter_pred *pred, void *event, | |||
178 | static int filter_pred_strloc(struct filter_pred *pred, void *event, | 178 | static int filter_pred_strloc(struct filter_pred *pred, void *event, |
179 | int val1, int val2) | 179 | int val1, int val2) |
180 | { | 180 | { |
181 | int str_loc = *(int *)(event + pred->offset); | 181 | unsigned short str_loc = *(unsigned short *)(event + pred->offset); |
182 | char *addr = (char *)(event + str_loc); | 182 | char *addr = (char *)(event + str_loc); |
183 | int cmp, match; | 183 | int cmp, match; |
184 | 184 | ||