When the hal module fails open hal-backend,
after free hal_backend_[module]_funcs structure, it should be initialized by NULL.
Otherwise, there will be an error when approaching above function pointer structure.
To avoid accessing uninitialized value, this is necessary.
Change-Id: Icc0672941d681eafee471724a2cb2c0d49ac6919
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
if (ret < 0) {
_E("Failed to get device-display backend");
free(hal_device_display_funcs);
+ hal_device_display_funcs = NULL;
return -ENOTSUP;
}