Skip to content

Commit

Permalink
msm_serial_hs: actually check if msm_serial_hs_tx_work failed to init
Browse files Browse the repository at this point in the history
Just a small typo.

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
YaroST12 authored and khusika committed Aug 28, 2018
1 parent cf32bb6 commit 1208628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/msm_serial_hs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2780,7 +2780,7 @@ static int uartdm_init_port(struct uart_port *uport)
init_kthread_worker(&tx->kworker);
tx->task = kthread_run(kthread_worker_fn,
&tx->kworker, "msm_serial_hs_%d_tx_work", uport->line);
if (IS_ERR(rx->task)) {
if (IS_ERR(tx->task)) {
MSM_HS_ERR("%s(): error creating task", __func__);
goto exit_lh_init;
}
Expand Down

0 comments on commit 1208628

Please sign in to comment.