Bluetooth: btintel_pcie: Fix null pointer dereference in remove

Add a NULL check for pci_get_drvdata() in btintel_pcie_remove() to
prevent a null pointer dereference. This can occur when
btintel_pcie_remove() is called concurrently from the PLDR
device_reprobe path on another CPU, after pci_set_drvdata(pdev, NULL)
has already been executed.

Fixes: 8c0693e29dba ("Bluetooth: btintel_pcie: Support Product level reset")
Signed-off-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 file changed