Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5362468iob; Mon, 9 May 2022 14:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH051+tTEUxdhZhMi0ovRnfww2IRNEMVV9h/E+i/1dkebDh3fQDVwe5vnI7NgtZGQw9efQ X-Received: by 2002:a17:907:1623:b0:6f6:e9ce:9926 with SMTP id hb35-20020a170907162300b006f6e9ce9926mr13267347ejc.360.1652133042956; Mon, 09 May 2022 14:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652133042; cv=none; d=google.com; s=arc-20160816; b=W8IxjBbYVGby5vRec2NJe6D3rbvYxYviAC5hhuaX0T8gWmwRSKxTbcc2DbmmZ0VT76 PkvmDHJL7GUmpuavH6U06DEwyWtiGzJ8dDKvWgl4NjVC3WNb7FbtwIpVfEsayF4ImRcc l58OA6mfKfquVCbpZcV9vJJO6DqUk11OwHdIRFVLo85QLNb7gBrh8NfuuMQRPxcB/eEw Hn7PH0HFZt+ap+N1NOYoafhYdAi74GnBKWB5EtXguFKQs+AEr0MuX4SToHanXUKH2dsK A358TimswhF12IhYu1maAabGFlzswwmX5cEkWhXkWykhXRUojbrM5DdChFSPv2Kz7Ylr GQBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=bfz1mnwaX4ka3VLZxEi1SIdcRgMxAF5AucTmvkifj0I=; b=MwmL/Ry2TNBJdZ0QlbuUZAlj9Nyr5ErAIz/uRDMooNOtNjG0rqvMavpr8gujwQCRpl kUS9otLkqodOF34EXjTXQnefeH3Hs+expz9YehPe+7+E7l+vd5y0JD3fMH4LM30Dp0/c b6InUdFUt+4xdfm07SsFVRkq2NCo8T9ZbHFTt8hwe+7VkPo05a2TJa5RsHsJf1mjbOAj RbTKgZzzgHmcEQPeEoagceIFcRzQFWlQZpaKGgf6E04pR0ahVtUuIsD/qzk8wumZZHQd FNBc2EzA6JIA9TTNTZ9959qhHUp+PqcsBJ0cCTlJeJIGLIL+sZEvSbMR/Qs9BnYNrwms xFZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=AiKMPLXl; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb24-20020a1709077e9800b006e803d493dcsi15587464ejc.989.2022.05.09.14.49.59; Mon, 09 May 2022 14:50:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=AiKMPLXl; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbiEIVJt (ORCPT + 99 others); Mon, 9 May 2022 17:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbiEIVJr (ORCPT ); Mon, 9 May 2022 17:09:47 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6954272216 for ; Mon, 9 May 2022 14:05:39 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2f16f3a7c34so129425127b3.17 for ; Mon, 09 May 2022 14:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=bfz1mnwaX4ka3VLZxEi1SIdcRgMxAF5AucTmvkifj0I=; b=AiKMPLXlZuaA3VPSpj/ofOF1/jtgSK4b7F0Y8MltTlfTMOaVr/mSsv2C6Lg+/bm8pK b3MmagvFZZvLwH/NIdZSL/eOLHl/1wD7ijQNvZOA1w8Eu5TQCsxDm4fKdWQ/y/zEIymr W6lPsa9LMn534psJhgmJ2CL5y5aVTvrinKDT+vVcXvn2BMhzvpxOXWNFAvmmiqAfZVKS uefy5ND7VVukTWWPv4zKp8Hbcf7m0qf+5X2rJuh/yg3XD5UKXakphQPF4AZwHvr0+v9R yG+smavIqT0RJ9KqK99UIt65nZaAnpD/oCat5UVC/7ZKsCtMuTdXpWH49MM/03xDvj/9 0aqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=bfz1mnwaX4ka3VLZxEi1SIdcRgMxAF5AucTmvkifj0I=; b=iS2zgPbTp9mE5K7Ha1k4LCDb+FWKUW/lNXe9S0NbN+U3gcwaOOPV1X+hRjcmWWLtbh 7MOpZRvyEJLaNQUz9LaROpFVhuDwfe+RsPvh5XBAvtFKBglRTPigZTYDYZW4b+SPWUS1 AI09yIpITYmDS1c6R4mqzVSfXaWZFh/f+cjaGoMTEtnCIt3BDvm6bUUpdO+fHAOAGJBz IkBUt9W/gWVQSHIogTX0LtIHNEAI9ORQ0ENQTkE9Ak4GjLVjFE8mudkmN8VAsliFKFKM RqRY3W1nDvYkof/e3YszAnOOllvvi+vnTuPTwIMacXYGQ+lvTx4LVSfmMpOpzUYDrdXt JczA== X-Gm-Message-State: AOAM533oddyjn56+dddyUB7jnYxTo25oCFBSighOe9sLGqQqzthMl3bt 8878LogAnlbmNQiayR/AXKEqhgxTRuvhyA== X-Received: from mmandlik.mtv.corp.google.com ([2620:15c:202:201:dfb9:149b:15ff:6b47]) (user=mmandlik job=sendgmr) by 2002:a25:d450:0:b0:649:1be0:506b with SMTP id m77-20020a25d450000000b006491be0506bmr14843403ybf.532.1652130338606; Mon, 09 May 2022 14:05:38 -0700 (PDT) Date: Mon, 9 May 2022 14:05:33 -0700 Message-Id: <20220509140403.1.I28d2ec514ad3b612015b28b8de861b8955033a19@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.0.512.ge40c2bad7a-goog Subject: [PATCH] Bluetooth: Fix Adv Monitor msft_add/remove_monitor_sync() From: Manish Mandlik To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Manish Mandlik , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Johan Hedberg , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Do not call skb_pull() in msft_add_monitor_sync() as msft_le_monitor_advertisement_cb() expects 'status' to be part of the skb. Same applies for msft_remove_monitor_sync(). Signed-off-by: Manish Mandlik --- net/bluetooth/msft.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c index f43994523b1f..9990924719aa 100644 --- a/net/bluetooth/msft.c +++ b/net/bluetooth/msft.c @@ -387,7 +387,6 @@ static int msft_remove_monitor_sync(struct hci_dev *hdev, return PTR_ERR(skb); status = skb->data[0]; - skb_pull(skb, 1); msft_le_cancel_monitor_advertisement_cb(hdev, status, hdev->msft_opcode, skb); @@ -506,7 +505,6 @@ static int msft_add_monitor_sync(struct hci_dev *hdev, return PTR_ERR(skb); status = skb->data[0]; - skb_pull(skb, 1); msft_le_monitor_advertisement_cb(hdev, status, hdev->msft_opcode, skb); -- 2.36.0.512.ge40c2bad7a-goog