Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7f6ac729 authored by Stephen Kitt's avatar Stephen Kitt Committed by Stephen Boyd
Browse files

clk/ti/adpll: allocate room for terminating null


The buffer allocated in ti_adpll_clk_get_name doesn't account for the
terminating null. This patch switches to devm_kasprintf to avoid
overflowing.

Signed-off-by: default avatarStephen Kitt <steve@sk2.org>
Link: https://lkml.kernel.org/r/20191019140634.15596-1-steve@sk2.org


Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 04932587
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment