diff options
Diffstat (limited to 'meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch')
-rw-r--r-- | meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch new file mode 100644 index 0000000000..205696e651 --- /dev/null +++ b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Fix for saftest failures. | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com> | ||
6 | |||
7 | diff -urpN a/openhpid/safhpi.c b/openhpid/safhpi.c | ||
8 | --- a/openhpid/safhpi.c | ||
9 | +++ b/openhpid/safhpi.c | ||
10 | @@ -1976,7 +1976,7 @@ SaErrorT SAHPI_API saHpiSensorThresholds | ||
11 | oh_release_domain(d); /* Unlock domain */ | ||
12 | |||
13 | OH_CALL_ABI(h, set_sensor_thresholds, SA_ERR_HPI_INVALID_CMD, rv, | ||
14 | - ResourceId, SensorNum, SensorThresholds); | ||
15 | + ResourceId, SensorNum, &tmp); | ||
16 | oh_release_handler(h); | ||
17 | |||
18 | return rv; | ||
19 | diff -urpN a/utils/sahpi_struct_utils.c b/utils/sahpi_struct_utils.c | ||
20 | --- a/utils/sahpi_struct_utils.c | ||
21 | +++ b/utils/sahpi_struct_utils.c | ||
22 | @@ -3855,6 +3855,9 @@ SaHpiBoolT oh_valid_textbuffer(SaHpiText | ||
23 | /* found a unpaired surrogate */ | ||
24 | return SAHPI_FALSE; | ||
25 | } | ||
26 | + } else { | ||
27 | + /*the first 2 bytes wrong*/ | ||
28 | + return SAHPI_FALSE; | ||
29 | } | ||
30 | } | ||
31 | break; | ||