Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: uartlite: fix null dereference on probe error path
The `pdata->ulite_uart_driver` is assigned last in the probe function. So, when un-registering the serial device on the error path this causes a null dereference and a crash. This fixes that by passing the initialized `ulite_uart_driver` pointer. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
- Loading branch information