Loading drivers/char/diag/diagchar_core.c +3 −0 Original line number Diff line number Diff line Loading @@ -537,6 +537,7 @@ static int diag_remove_client_entry(struct file *file) return -EINVAL; } mutex_lock(&driver->diagchar_mutex); diagpriv_data = file->private_data; for (i = 0; i < driver->num_clients; i++) if (diagpriv_data && diagpriv_data->pid == Loading @@ -546,11 +547,13 @@ static int diag_remove_client_entry(struct file *file) DIAG_LOG(DIAG_DEBUG_USERSPACE, "pid %d, not present in client map\n", diagpriv_data->pid); mutex_unlock(&driver->diagchar_mutex); mutex_unlock(&driver->diag_file_mutex); return -EINVAL; } DIAG_LOG(DIAG_DEBUG_USERSPACE, "diag: %s process exit with pid = %d\n", driver->client_map[i].name, diagpriv_data->pid); mutex_unlock(&driver->diagchar_mutex); /* * clean up any DCI registrations, if this is a DCI client * This will specially help in case of ungraceful exit of any DCI client Loading Loading
drivers/char/diag/diagchar_core.c +3 −0 Original line number Diff line number Diff line Loading @@ -537,6 +537,7 @@ static int diag_remove_client_entry(struct file *file) return -EINVAL; } mutex_lock(&driver->diagchar_mutex); diagpriv_data = file->private_data; for (i = 0; i < driver->num_clients; i++) if (diagpriv_data && diagpriv_data->pid == Loading @@ -546,11 +547,13 @@ static int diag_remove_client_entry(struct file *file) DIAG_LOG(DIAG_DEBUG_USERSPACE, "pid %d, not present in client map\n", diagpriv_data->pid); mutex_unlock(&driver->diagchar_mutex); mutex_unlock(&driver->diag_file_mutex); return -EINVAL; } DIAG_LOG(DIAG_DEBUG_USERSPACE, "diag: %s process exit with pid = %d\n", driver->client_map[i].name, diagpriv_data->pid); mutex_unlock(&driver->diagchar_mutex); /* * clean up any DCI registrations, if this is a DCI client * This will specially help in case of ungraceful exit of any DCI client Loading