Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: 8250_aspeed_vuart: Fix potential NULL dereference in aspeed_v…
…uart_probe platform_get_resource() may fail and return NULL, so we should better check it's return value to avoid a NULL pointer dereference. Fixes: 54da3e3 ("serial: 8250_aspeed_vuart: use UPF_IOREMAP to set up register mapping") Signed-off-by: Miaoqian Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information