Files
meta-openembedded/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch
T
Armin Kuster 224549c911 openhpi: refresh patches
WARNING: openhpi-3.6.1-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch openhpi-use-serial-tests-config-needed-by-ptest.patch
patching file configure.ac
Hunk #1 succeeded at 7 with fuzz 2.

Now at patch openhpi-use-serial-tests-config-needed-by-ptest.patch

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-04-13 12:43:44 -07:00

34 lines
1.3 KiB
Diff

Fix for saftest failures.
Upstream-Status: Pending
Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
Index: openhpi-3.6.1/openhpid/safhpi.c
===================================================================
--- openhpi-3.6.1.orig/openhpid/safhpi.c
+++ openhpi-3.6.1/openhpid/safhpi.c
@@ -1933,7 +1933,7 @@ SaErrorT SAHPI_API saHpiSensorThresholds
oh_release_domain(d); /* Unlock domain */
OH_CALL_ABI(h, set_sensor_thresholds, SA_ERR_HPI_INVALID_CMD, rv,
- ResourceId, SensorNum, SensorThresholds);
+ ResourceId, SensorNum, &tmp);
oh_release_handler(h);
return rv;
Index: openhpi-3.6.1/utils/sahpi_struct_utils.c
===================================================================
--- openhpi-3.6.1.orig/utils/sahpi_struct_utils.c
+++ openhpi-3.6.1/utils/sahpi_struct_utils.c
@@ -3861,6 +3861,9 @@ SaHpiBoolT oh_valid_textbuffer(SaHpiText
/* found a unpaired surrogate */
return SAHPI_FALSE;
}
+ } else {
+ /*the first 2 bytes wrong*/
+ return SAHPI_FALSE;
}
}
break;