Change-Id: Ib730cb1dba433bf708743766680bb566ad91e112
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
if (private_module->use_hal_tdm) {
hal_tdm_value hvalue;
ret = (tdm_error)hal_tdm_hwc_get_property((hal_tdm_hwc *)private_hwc->hwc_backend, id, &hvalue);
- memcpy(value->ptr, &hvalue.ptr, sizeof(tdm_value));
+ if (ret == TDM_ERROR_NONE)
+ memcpy(value->ptr, &hvalue.ptr, sizeof(tdm_value));
} else {
if (!func_hwc->hwc_get_property) {
/* LCOV_EXCL_START */
if (private_module->use_hal_tdm) {
hal_tdm_value hvalue;
ret = (tdm_error)hal_tdm_output_get_property(private_output->output_backend, id, &hvalue);
- memcpy(value->ptr, &hvalue.ptr, sizeof(tdm_value));
+ if (ret == TDM_ERROR_NONE)
+ memcpy(value->ptr, &hvalue.ptr, sizeof(tdm_value));
} else {
func_output = &private_module->func_output;