free_block_device(bdev);
return -EPERM;
} else if (!strncmp(bdev->data->fs_type, LUKS_NAME, strlen(LUKS_NAME))) {
- bdev->data->block_type = BLOCK_EXTENDEDSD_DEV;
- ret = change_mount_point(bdev, EXTENDED_SD_PATH);
if (ret < 0) {
ret = -EPERM;
free_block_device(bdev);
ode_luks_set_event_cb(CALLBACK)
*/
-
return 0;
- } else if (!strncmp(bdev->data->fs_type, EXT4_NAME, strlen(EXT4_NAME))) {
+ } else if (mapper && !strncmp(bdev->data->fs_type, EXT4_NAME, strlen(EXT4_NAME))) {
bdev->data->block_type = BLOCK_EXTENDEDSD_DEV;
ret = change_mount_point(bdev, EXTENDED_SD_PATH);
if (ret < 0) {