Skip to content

Commit

Permalink
ipmid: Fix the problem that OEM Set Boot Order may cause ipmid crash …
Browse files Browse the repository at this point in the history
…or hung up

Summary: as title

Test Plan: verified on Yosemite system

Reviewed By: sdasari73

fbshipit-source-id: f48db85
  • Loading branch information
benwei13 authored and facebook-github-bot committed Aug 31, 2017
1 parent 1dba45d commit b482563
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/recipes-core/ipmid/files/ipmid.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit b482563

Please sign in to comment.