1
0
Fork 0

ipmi: Use dedicated API for copying a UUID

Use guid_copy() instead of memcpy() to hide guid_t implementation details and
to show we expect guid_t in a raw buffer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
hifive-unleashed-5.1
Andy Shevchenko 2019-01-24 22:22:20 +02:00 committed by Corey Minyard
parent 16ccdb552e
commit f32043901a
1 changed files with 1 additions and 1 deletions

View File

@ -3156,7 +3156,7 @@ static void guid_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg)
goto out;
}
memcpy(bmc->fetch_guid.b, msg->msg.data + 1, 16);
guid_copy(&bmc->fetch_guid, (guid_t *)(msg->msg.data + 1));
/*
* Make sure the guid data is available before setting
* dyn_guid_set.