Re: [PATCH] printk: drop redundant devkmsg_log_str memsets

From: Petr Mladek
Date: Mon Jan 22 2018 - 04:54:19 EST


On Fri 2018-01-19 13:39:01, Sergey Senozhatsky wrote:
> We copy in null terminated strings "on" and "off", no
> need to zero out devkmsg_log_str in control_devkmsg().
>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>

Great catch!

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

I have pushed this into for-4.16 branch in printk.git, see
https://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk.git/commit/?h=for-4.16&id=6fd78a1a99c9580da49ee8f951fdce9846256375

Best Regards,
Petr