mbox series

[0/2] clk: zynqmp: clock fixes

Message ID 20220510070154.29528-1-shubhrajyoti.datta@xilinx.com (mailing list archive)
Headers show
Series clk: zynqmp: clock fixes | expand

Message

Shubhrajyoti Datta May 10, 2022, 7:01 a.m. UTC
Below are the 
As part of discurssions on [1] there was a suggestion to use
strscpy. Which is implemented in [2] and [1] null terminates
the string.

[1] https://www.spinics.net/lists/linux-clk/msg60795.html
[2] https://lore.kernel.org/all/DM6PR02MB6635E9F94E9A5FFC06188EF2AAAF9@DM6PR02MB6635.namprd02.prod.outlook.com/T/

Ian Nam (1):
  clk: zynqmp: Fix stack-out-of-bounds in strncpy`

Shubhrajyoti Datta (1):
  clk: zynqmp: Replaced strncpy() with strscpy()

 drivers/clk/zynqmp/clkc.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Comments

Michal Simek July 20, 2022, 1:38 p.m. UTC | #1
On 5/10/22 09:01, Shubhrajyoti Datta wrote:
> Below are the
> As part of discurssions on [1] there was a suggestion to use
> strscpy. Which is implemented in [2] and [1] null terminates
> the string.
> 
> [1] https://www.spinics.net/lists/linux-clk/msg60795.html
> [2] https://lore.kernel.org/all/DM6PR02MB6635E9F94E9A5FFC06188EF2AAAF9@DM6PR02MB6635.namprd02.prod.outlook.com/T/
> 
> Ian Nam (1):
>    clk: zynqmp: Fix stack-out-of-bounds in strncpy`
> 
> Shubhrajyoti Datta (1):
>    clk: zynqmp: Replaced strncpy() with strscpy()
> 
>   drivers/clk/zynqmp/clkc.c | 11 +++++++++--
>   1 file changed, 9 insertions(+), 2 deletions(-)
> 

Acked-by: Michal Simek <michal.simek@amd.com>

Thanks,
Michal