tty: serial: sh-sci: Fix sleeping in atomic context
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 4 Jul 2023 15:48:18 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 18:30:20 +0000 (20:30 +0200)
commit57c984f6fe20ebb9306d6e8c09b4f67fe63298c6
tree748da1f0d2ec8b18978c4c175beb9121b786bcbc
parent9b8fef6345d5487137d4193bb0a0eae2203c284e
tty: serial: sh-sci: Fix sleeping in atomic context

Fix sleeping in atomic context warning as reported by the Smatch static
checker tool by replacing disable_irq->disable_irq_nosync.

Reported by: Dan Carpenter <dan.carpenter@linaro.org>

Fixes: 8749061be196 ("tty: serial: sh-sci: Add RZ/G2L SCIFA DMA tx support")
Cc: stable@kernel.org
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230704154818.406913-1-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c