Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mwlwifi: fix PCIe DT node null pointer dereference
pci_bus_to_OF_node() used to get the PCI bus DT node returns node if found or NULL if none is found. Since the return of pci_bus_to_OF_node() is not checked in the DT node name print it will cause a null pointer dereference and crash the kernel. So first check whether the node is not NULL and then print. Signed-off-by: Robert Marko <[email protected]>
- Loading branch information