]> git.baikalelectronics.ru Git - kernel.git/commit
rpmsg: Strcpy is not safe, use strscpy_pad() instead
authorSaud Farooqui <farooqui_saud@hotmail.com>
Thu, 23 Jun 2022 09:20:47 +0000 (14:20 +0500)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 24 Jun 2022 17:37:00 +0000 (11:37 -0600)
commite047c446ee7107e273ab67e9d95cb0d43087413d
tree1d76b1bebc643b7e0121b4d06a6def392e012507
parent68d31f97957e52c753458e87f76e9d6ec2dc8770
rpmsg: Strcpy is not safe, use strscpy_pad() instead

Replace strcpy() with strscpy_pad() for copying the rpmsg
device name in rpmsg_register_device_override().

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Saud Farooqui <farooqui_saud@hotmail.com>
Link: https://lore.kernel.org/r/PA4P189MB14210AA95DCA3715AFA7F4A68BB59@PA4P189MB1421.EURP189.PROD.OUTLOOK.COM
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/rpmsg/rpmsg_core.c