Merge tag 'erofs-for-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang...
[linux-2.6-microblaze.git] / net / bluetooth / amp.c
index 9c711f0..be2d469 100644 (file)
@@ -297,6 +297,9 @@ void amp_read_loc_assoc_final_data(struct hci_dev *hdev,
        struct hci_request req;
        int err;
 
+       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);