module: Use strscpy() for last_unloaded_module
authorAaron Tomlin <atomlin@redhat.com>
Thu, 14 Jul 2022 15:39:32 +0000 (16:39 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Jul 2022 00:40:23 +0000 (17:40 -0700)
commitdbf0ae65bce48bf4c2b6d114cac10193ef050294
treeb83f04ac960fc0b0b53808398339288d1ac1b934
parent17dd25c29cda98c370f8d5a4ae3daee33fac1669
module: Use strscpy() for last_unloaded_module

The use of strlcpy() is considered deprecated [1].
In this particular context, there is no need to remain with strlcpy().
Therefore we transition to strscpy().

[1]: https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy

Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/main.c