Change-Id: I632bd9813094ade3b03dadd7d21bc62dc2152710
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
int i;
int ret;
- if (!usb)
+ if (!usb || !gadget || !cfs_is_gadget_supported(usb, gadget))
return -EINVAL;
cfs_client = container_of(usb, struct cfs_client,
client);
- if (!usb || !gadget || !cfs_is_gadget_supported(usb, gadget))
- return -EINVAL;
-
ret = cfs_set_gadget_attrs(cfs_client, &gadget->attrs);
if (ret)
goto out;
if ((error = dlerror()) != NULL) {
_E("dlsym() failed: %s", error);
goto ERROR;
+ } else if (OEM_sys_get_devman_plugin_interface == NULL) {
+ _E("dlsym(): symbol \"OEM_sys_get_devman_plugin_interface\" missing from %s", DEVMAN_PLUGIN_PATH);
+ goto ERROR;
}
oem_intf = OEM_sys_get_devman_plugin_interface();