X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=net%2Fbluetooth%2Famp.c;h=be2d469d6369dc4091aa6d4ce18f9ddc9b8ca4d3;hb=f02361639a481771130db5e67933c4f414377fce;hp=9c711f0dfae355f0c805b3183ebcfffc2a965812;hpb=58e16d792a6a8c6b750f637a4649967fcac853dc;p=linux-2.6-microblaze.git diff --git a/net/bluetooth/amp.c b/net/bluetooth/amp.c index 9c711f0dfae3..be2d469d6369 100644 --- a/net/bluetooth/amp.c +++ b/net/bluetooth/amp.c @@ -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);