Re: [PATCH v2] clk/ti/adpll: allocate room for terminating null

2019-10-19 Thread Stephen Kitt
On Thu, 17 Oct 2019 08:48:53 -0700, Stephen Boyd wrote: > Quoting Stephen Kitt (2019-09-27 11:05:59) > > The buffer allocated in ti_adpll_clk_get_name doesn't account for the > > terminating null. This patch switches to ka_sprintf to avoid > > overflowing. > > > > Signed-off-by: Stephen Kitt > >

Re: [PATCH v2] clk/ti/adpll: allocate room for terminating null

2019-10-17 Thread Stephen Boyd
Quoting Stephen Kitt (2019-09-27 11:05:59) > The buffer allocated in ti_adpll_clk_get_name doesn't account for the > terminating null. This patch switches to ka_sprintf to avoid > overflowing. > > Signed-off-by: Stephen Kitt > --- > drivers/clk/ti/adpll.c | 10 ++ > 1 file changed, 2 ins

Re: [PATCH v2] clk/ti/adpll: allocate room for terminating null

2019-09-27 Thread Stephen Kitt
Le 27/09/2019 20:05, Stephen Kitt a écrit : The buffer allocated in ti_adpll_clk_get_name doesn't account for the terminating null. This patch switches to ka_sprintf to avoid Aargh, devm_kasprintf of course... overflowing. Signed-off-by: Stephen Kitt --- drivers/clk/ti/adpll.c | 10 ++-

[PATCH v2] clk/ti/adpll: allocate room for terminating null

2019-09-27 Thread Stephen Kitt
The buffer allocated in ti_adpll_clk_get_name doesn't account for the terminating null. This patch switches to ka_sprintf to avoid overflowing. Signed-off-by: Stephen Kitt --- drivers/clk/ti/adpll.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/clk/ti/adp