]> Git Repo - linux.git/commit
ftrace: Check if pages were allocated before calling free_pages()
authorSteven Rostedt (VMware) <[email protected]>
Tue, 30 Mar 2021 13:58:38 +0000 (09:58 -0400)
committerSteven Rostedt (VMware) <[email protected]>
Tue, 30 Mar 2021 13:58:38 +0000 (09:58 -0400)
commit59300b36f85f254260c81d9dd09195fa49eb0f98
treea02466a8f75a624be15ce48ec686cab9d387782b
parent83b62687a05205847d627f29126a8fee3c644335
ftrace: Check if pages were allocated before calling free_pages()

It is possible that on error pg->size can be zero when getting its order,
which would return a -1 value. It is dangerous to pass in an order of -1
to free_pages(). Check if order is greater than or equal to zero before
calling free_pages().

Link: https://lore.kernel.org/lkml/[email protected]/
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
kernel/trace/ftrace.c
This page took 0.054218 seconds and 4 git commands to generate.