mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
tracing: Remove BUG_ON() from append_filter_string()
There's no reason to BUG if there's a bug in the filtering code. Simply do a warning and return. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
f06eec4d0f
commit
a0ff08fd4e
@ -681,7 +681,8 @@ static int append_filter_string(struct event_filter *filter,
|
||||
int newlen;
|
||||
char *new_filter_string;
|
||||
|
||||
BUG_ON(!filter->filter_string);
|
||||
if (WARN_ON(!filter->filter_string))
|
||||
return -EINVAL;
|
||||
newlen = strlen(filter->filter_string) + strlen(string) + 1;
|
||||
new_filter_string = kmalloc(newlen, GFP_KERNEL);
|
||||
if (!new_filter_string)
|
||||
|
Loading…
Reference in New Issue
Block a user