From b4825630e23993c32535d0b242195ecea5ec2ac1 Mon Sep 17 00:00:00 2001 From: Ben Wei Date: Thu, 31 Aug 2017 10:41:48 -0700 Subject: [PATCH] ipmid: Fix the problem that OEM Set Boot Order may cause ipmid crash or hung up Summary: as title Test Plan: verified on Yosemite system Reviewed By: sdasari73 fbshipit-source-id: f48db85 --- common/recipes-core/ipmid/files/ipmid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/recipes-core/ipmid/files/ipmid.c b/common/recipes-core/ipmid/files/ipmid.c index 7550b93e4f7..51d82e10fe2 100644 --- a/common/recipes-core/ipmid/files/ipmid.c +++ b/common/recipes-core/ipmid/files/ipmid.c @@ -1352,6 +1352,7 @@ oem_set_boot_order(unsigned char *request, unsigned char req_len, syslog(LOG_WARNING, "[%s] Close the previous thread\n", __func__); #endif pthread_cancel(bios_timer_tid[req->payload_id - 1]); + IsTimerStart[req->payload_id - 1] = false; } if (req->data[0] & (BIOS_BOOT_VALID_FLAG | CMOS_VALID_FLAG)) {