diff --git a/net/bluetooth/amp.c b/net/bluetooth/amp.c index 2640d78f30b..13c1a8198ac 100644 --- a/net/bluetooth/amp.c +++ b/net/bluetooth/amp.c @@ -246,6 +246,9 @@ void amp_read_loc_assoc_final_data(struct hci_dev *hdev, struct hci_cp_read_local_amp_assoc cp; struct amp_mgr *mgr = hcon->amp_mgr; + if (!mgr) + return; + cp.phy_handle = hcon->handle; cp.len_so_far = cpu_to_le16(0); cp.max_len = cpu_to_le16(hdev->amp_assoc_size);