]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipmi: Fix strcpy source and destination the same
authorCorey Minyard <corey@minyard.net>
Sat, 14 Jun 2025 00:06:26 +0000 (19:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:02 +0000 (16:26 +0200)
commitff85fa5c282b7d171ed6beb6881fa6ab62135a43
tree58d31d38043362d8459d2e71e6449b3c749e908c
parent10e8ce719bc66a212f4f950bea3f386c437905ef
ipmi: Fix strcpy source and destination the same

[ Upstream commit 8ffcb7560b4a15faf821df95e3ab532b2b020f8c ]

The source and destination of some strcpy operations was the same.
Split out the part of the operations that needed to be done for those
particular calls so the unnecessary copy wasn't done.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506140756.EFXXvIP4-lkp@intel.com/
Signed-off-by: Corey Minyard <corey@minyard.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/ipmi/ipmi_watchdog.c