]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
arm64: perf: Don't use of_node after putting it
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 3 Jun 2015 20:53:37 +0000 (21:53 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 30 Jun 2015 17:13:03 +0000 (18:13 +0100)
commit18a11b5e79697ddc61e30181737c91ce21eaa859
tree61d10528dd4ae8e0a9222b8fd60b8f0be193a758
parent1e43ba9cd867f05f3e85579c370b939e1ce585e9
arm64: perf: Don't use of_node after putting it

It's possible, albeit unlikely, that using the of_node here will
reference freed memory. Call of_node_put() after printing the
name to be safe.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c