mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 00:46:43 +07:00
a885bcfd15
The intended behavior of function ipmi_hardcode_init_one() is to default to kcs interface when no type argument is presented when initializing ipmi with hard coded addresses. However, the array of char pointers allocated on the stack by function ipmi_hardcode_init() was not inited to zeroes, so it contained stack debris. Consequently, passing the cruft stored in this array to function ipmi_hardcode_init_one() caused a crash when it was unable to detect that the char * being passed was nonsense and tried to access the address specified by the bogus pointer. The fix is simply to initialize the si_type array to zeroes, so if there were no type argument given to at the command line, function ipmi_hardcode_init_one() could properly default to the kcs interface. Signed-off-by: Tony Camuso <tcamuso@redhat.com> Message-Id: <1554837603-40299-1-git-send-email-tcamuso@redhat.com> Signed-off-by: Corey Minyard <cminyard@mvista.com> |
||
---|---|---|
.. | ||
bt-bmc.c | ||
ipmi_bt_sm.c | ||
ipmi_devintf.c | ||
ipmi_dmi.c | ||
ipmi_dmi.h | ||
ipmi_kcs_sm.c | ||
ipmi_msghandler.c | ||
ipmi_plat_data.c | ||
ipmi_plat_data.h | ||
ipmi_powernv.c | ||
ipmi_poweroff.c | ||
ipmi_si_hardcode.c | ||
ipmi_si_hotmod.c | ||
ipmi_si_intf.c | ||
ipmi_si_mem_io.c | ||
ipmi_si_parisc.c | ||
ipmi_si_pci.c | ||
ipmi_si_platform.c | ||
ipmi_si_port_io.c | ||
ipmi_si_sm.h | ||
ipmi_si.h | ||
ipmi_smic_sm.c | ||
ipmi_ssif.c | ||
ipmi_watchdog.c | ||
Kconfig | ||
kcs_bmc_aspeed.c | ||
kcs_bmc_npcm7xx.c | ||
kcs_bmc.c | ||
kcs_bmc.h | ||
Makefile |