Re: [PATCH] printk: drop redundant devkmsg_log_str memsets

From: Sergey Senozhatsky
Date: Sat Jan 20 2018 - 01:09:36 EST


On (01/19/18 09:17), Steven Rostedt wrote:
> Yep, and even the sysctl checks for the terminating nul string, so
> there's no leaks of any kind.
>
> Tested by adding: printk.devkmsg=on and running:
>
> $ hexdump -C /proc/sys/kernel/printk_devkmsg
> 00000000 6f 6e 0a |on.|
> 00000003
>
>
> Reviewed-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

thanks.

-ss