if (thread_id < 0 || thread_id >= THREAD_MAX)
return;
- /* Remove file for block device /run/xxxxxx/id */
- if (bdev->data->block_type == BLOCK_MMC_EXTENDED_INTERNAL_DEV)
- remove_file(bdev->data->id, true);
- else
- remove_file(bdev->data->id, false);
-
pthread_mutex_lock(&(th_manager[thread_id].mutex));
th_manager[thread_id].num_dev--;
pdata.bdev->data->primary)
create_external_apps_directory();
if (pdata.op == BLOCK_DEV_UNMOUNT) {
+ /* Remove file for block device /run/xxxxxx/id */
if (pdata.bdev->data->block_type == BLOCK_MMC_EXTENDED_INTERNAL_DEV)
remove_file(pdata.bdev->data->id, true);
else
continue;
if (bdev->removed)
continue;
- if (!strncmp(data->devnode, devnode, sizeof(devnode) + 1)) {
+ if (!strncmp(data->devnode, devnode, strlen(devnode) + 1)) {
pthread_mutex_unlock(&(th_manager[i].mutex));
return -1;
}