Loading drivers/char/diag/diag_dci.c +12 −9 Original line number Diff line number Diff line Loading @@ -2709,8 +2709,10 @@ fail_alloc: if (new_entry) { for (i = 0; i < new_entry->num_buffers; i++) { proc_buf = &new_entry->buffers[i]; if (proc_buf) { mutex_destroy(&proc_buf->health_mutex); mutex_destroy(&proc_buf->buf_primary->data_mutex); mutex_destroy( &proc_buf->buf_primary->data_mutex); mutex_destroy(&proc_buf->buf_cmd->data_mutex); if (proc_buf->buf_primary) kfree(proc_buf->buf_primary->data); Loading @@ -2719,6 +2721,7 @@ fail_alloc: kfree(proc_buf->buf_cmd->data); kfree(proc_buf->buf_cmd); } } kfree(new_entry->dci_event_mask); kfree(new_entry->dci_log_mask); } Loading drivers/char/diag/diagchar_core.c +1 −1 Original line number Diff line number Diff line Loading @@ -1101,7 +1101,7 @@ static int diag_ioctl_get_real_time(unsigned long ioarg) usleep_range(10000, 10100); } else { if (rt_query.proc < 0 || rt_query.proc > DIAG_NUM_PROC) { rt_query.proc >= DIAG_NUM_PROC) { pr_err("diag: Invalid proc %d in %s\n", rt_query.proc, __func__); return -EINVAL; Loading Loading
drivers/char/diag/diag_dci.c +12 −9 Original line number Diff line number Diff line Loading @@ -2709,8 +2709,10 @@ fail_alloc: if (new_entry) { for (i = 0; i < new_entry->num_buffers; i++) { proc_buf = &new_entry->buffers[i]; if (proc_buf) { mutex_destroy(&proc_buf->health_mutex); mutex_destroy(&proc_buf->buf_primary->data_mutex); mutex_destroy( &proc_buf->buf_primary->data_mutex); mutex_destroy(&proc_buf->buf_cmd->data_mutex); if (proc_buf->buf_primary) kfree(proc_buf->buf_primary->data); Loading @@ -2719,6 +2721,7 @@ fail_alloc: kfree(proc_buf->buf_cmd->data); kfree(proc_buf->buf_cmd); } } kfree(new_entry->dci_event_mask); kfree(new_entry->dci_log_mask); } Loading
drivers/char/diag/diagchar_core.c +1 −1 Original line number Diff line number Diff line Loading @@ -1101,7 +1101,7 @@ static int diag_ioctl_get_real_time(unsigned long ioarg) usleep_range(10000, 10100); } else { if (rt_query.proc < 0 || rt_query.proc > DIAG_NUM_PROC) { rt_query.proc >= DIAG_NUM_PROC) { pr_err("diag: Invalid proc %d in %s\n", rt_query.proc, __func__); return -EINVAL; Loading