mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 01:00:58 +07:00
[WATCHDOG] pcwd.c sprintf/strcpy fix
change sprintf(pcwd_private.fw_ver_str, "ERROR"); to strcpy... as pointed out by Andrew Morton. Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Signed-off-by: Andrew Morton <akpm@osdl.org>
This commit is contained in:
parent
369fa25294
commit
6bbc20bc0b
@ -269,7 +269,7 @@ static inline void pcwd_get_firmware(void)
|
||||
{
|
||||
int one, ten, hund, minor;
|
||||
|
||||
sprintf(pcwd_private.fw_ver_str, "ERROR");
|
||||
strcpy(pcwd_private.fw_ver_str, "ERROR");
|
||||
|
||||
if (set_command_mode()) {
|
||||
one = send_isa_command(CMD_ISA_VERSION_INTEGER);
|
||||
|
Loading…
Reference in New Issue
Block a user