Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH] serial: jsm: fix NPE during jsm_uart_port_init
@ 2025-05-05 18:18 Dustin Lundquist
  2025-05-06  4:27 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Dustin Lundquist @ 2025-05-05 18:18 UTC (permalink / raw)
  To: linux-serial; +Cc: Tony Lindgren

No driver was set which caused serial_base_ctrl_add to crash.

Fixes: 84a9582fd203 ("serial: core: Start managing serial controllers to enable runtime PM")
Signed-off-by: Dustin Lundquist <dustin@null-ptr.net>
---
drivers/tty/serial/jsm/jsm_tty.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c
index ce0fef7e2c66..be2f130696b3 100644
--- a/drivers/tty/serial/jsm/jsm_tty.c
+++ b/drivers/tty/serial/jsm/jsm_tty.c
@@ -451,6 +451,7 @@ int jsm_uart_port_init(struct jsm_board *brd)
		if (!brd->channels[i])
			continue;

+		brd->channels[i]->uart_port.dev = &brd->pci_dev->dev;
		brd->channels[i]->uart_port.irq = brd->irq;
		brd->channels[i]->uart_port.uartclk = 14745600;
		brd->channels[i]->uart_port.type = PORT_JSM;
-- 
2.47.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-06  4:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-05 18:18 [PATCH] serial: jsm: fix NPE during jsm_uart_port_init Dustin Lundquist
2025-05-06  4:27 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox