Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit c5505813 authored by Stephen Kitt's avatar Stephen Kitt Committed by Greg Kroah-Hartman
Browse files

clk/ti/adpll: allocate room for terminating null

[ Upstream commit 7f6ac729

 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5eb67d38
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