projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2463700
)
tty: serial: imx: Add return value check for platform_get_irq()
author
Anson Huang
<Anson.Huang@nxp.com>
Mon, 11 May 2020 07:09:56 +0000
(15:09 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 15 May 2020 10:25:15 +0000
(12:25 +0200)
RX irq is required, so add return value check for platform_get_irq().
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link:
https://lore.kernel.org/r/1589180996-618-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/imx.c
b/drivers/tty/serial/imx.c
index f4d68109bc8bae51954ae98ac5d6bcdbfaddc189..f4023d9d8e7a172217b1037dccfa613b5edae2af 100644
(file)
--- a/
drivers/tty/serial/imx.c
+++ b/
drivers/tty/serial/imx.c
@@
-2252,6
+2252,8
@@
static int imx_uart_probe(struct platform_device *pdev)
return PTR_ERR(base);
rxirq = platform_get_irq(pdev, 0);
+ if (rxirq < 0)
+ return rxirq;
txirq = platform_get_irq_optional(pdev, 1);
rtsirq = platform_get_irq_optional(pdev, 2);