diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index e07ae37ef19bad..ec691af1a7c99e 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -4861,7 +4861,8 @@ static const struct { */ static int hci_dev_setup_sync(struct hci_dev *hdev) { - struct fwnode_handle *fwnode = dev_fwnode(hdev->dev.parent); + struct fwnode_handle *fwnode = + hdev->dev.parent ? dev_fwnode(hdev->dev.parent) : NULL; int ret = 0; bool invalid_bdaddr; size_t i;