if (path)
snprintf(ext_path, sizeof(ext_path), "%s", path);
else {
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ goto out_nodev;
+ }
ret = get_external_path(ext_path, sizeof(ext_path));
if (ret == -ENODEV)
goto out_nodev;
if (path)
snprintf(ext_path, sizeof(ext_path), "%s", path);
else {
+ if (!storage_ext_is_supported()) {
+ _D("Block module is not enabled");
+ goto out_nodev;
+ }
ret = get_external_path(ext_path, sizeof(ext_path));
if (ret == -ENODEV)
goto out_nodev;