diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2017-04-26 16:22:00 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-04-27 12:02:12 -0400 |
commit | 26c812ece4120271a786a55abef463f9f65a25ad (patch) | |
tree | ecfb5de34b1c12aa0308d746f0fba394bd46f871 /meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch | |
parent | 6dce1a2d9cf53d3b36e8999f25087a664645782b (diff) | |
download | meta-openembedded-26c812ece4120271a786a55abef463f9f65a25ad.tar.gz |
openhpi: add new recipe
OpenHPI is an open source project created with
the intent of providing an implementation of
the SA Forum's Hardware Platform Interface (HPI).
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch')
-rw-r--r-- | meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch new file mode 100644 index 0000000000..077e26cbff --- /dev/null +++ b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Fix alignment issue in ipmi_inventory.c | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-of-by: Aws Ismail <aws.ismail@windriver.com> | ||
6 | |||
7 | diff --git a/plugins/ipmi/ipmi_inventory.c b/plugins/ipmi/ipmi_inventory.c | ||
8 | index 5382186..01655c6 100644 | ||
9 | --- a/plugins/ipmi/ipmi_inventory.c | ||
10 | +++ b/plugins/ipmi/ipmi_inventory.c | ||
11 | @@ -2546,8 +2546,11 @@ static SaErrorT modify_inventory(SaHpiIdrFieldT *field, | ||
12 | if (tb->DataLength == 0) { | ||
13 | rv = ipmi_fru_set_board_info_mfg_time(fru, 0); | ||
14 | } else { | ||
15 | + time_t the_time; | ||
16 | + /* tb->Data is not aligned -- copy to temp */ | ||
17 | + memcpy(&the_time, tb->Data, sizeof(the_time)); | ||
18 | rv = ipmi_fru_set_board_info_mfg_time(fru, | ||
19 | - *(time_t *)tb->Data); | ||
20 | + the_time); | ||
21 | } | ||
22 | break; | ||
23 | case SAHPI_IDR_FIELDTYPE_MANUFACTURER: | ||