diff options
author | Ilpo Järvinen <[email protected]> | 2023-01-23 19:38:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-01-23 18:51:58 +0100 |
commit | ed0400ad547c0b88d2f06ecf22a089eb2e84c9b7 (patch) | |
tree | 2e4a19a43c69c7799d9995e3c026b88230890ef6 | |
parent | a3cf6b946e7eddaab7a2c2f61caf9c1763dcbed7 (diff) |
serial: liteuart: Correct error rollback
Goto to the correct rollback label instead of directly returning.
Fixes: 5602cf99dcdc ("serial: liteuart: add IRQ support for the RX path")
Reported-by: Stephen Rothwell <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Gabriel Somlo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/tty/serial/liteuart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/liteuart.c b/drivers/tty/serial/liteuart.c index ef557d59e4c8..192ad681de35 100644 --- a/drivers/tty/serial/liteuart.c +++ b/drivers/tty/serial/liteuart.c @@ -313,7 +313,7 @@ static int liteuart_probe(struct platform_device *pdev) ret = platform_get_irq_optional(pdev, 0); if (ret < 0 && ret != -ENXIO) - return ret; + goto err_erase_id; if (ret > 0) port->irq = ret; |