Merge tag 'tty-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull serial driver fix from Greg KH:
"A single 8250_exar serial driver fix for a reported problem with a
change that happened in 5.13-rc1.

It has been in linux-next with no reported problems"

* tag 'tty-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
serial: 8250_exar: Avoid NULL pointer dereference at ->exit()

+5 -1
+5 -1
drivers/tty/serial/8250/8250_exar.c
··· 553 553 { 554 554 struct exar8250 *priv = pci_get_drvdata(pcidev); 555 555 struct uart_8250_port *port = serial8250_get_port(priv->line[0]); 556 - struct platform_device *pdev = port->port.private_data; 556 + struct platform_device *pdev; 557 + 558 + pdev = port->port.private_data; 559 + if (!pdev) 560 + return; 557 561 558 562 device_remove_software_node(&pdev->dev); 559 563 platform_device_unregister(pdev);