Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7280660ybi; Mon, 8 Jul 2019 18:32:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqw9oc653DUrGi5anzQgjrLXve/04xUsKreeP7JJcjnWHglHjqSZb5Y4qx2AT84r2KpxIe X-Received: by 2002:a17:902:2869:: with SMTP id e96mr27793076plb.203.1562635967938; Mon, 08 Jul 2019 18:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562635967; cv=none; d=google.com; s=arc-20160816; b=AMtvA2t2iKAYT0/OKz3BSEMSrKlElG4H7HT1Fogvig6Q7Jnyc2sa58evj/K1ov+aUY z10pLN0B8DhclWu92NBJItdDheMraZKNpWvHWa7mA70smQIBMhZ/WE5HjrbE19yVd3y6 H3VGt/pNT477XSZVCyN9I0D//ZYXiY1NcW5NuKLGdU4N+JNQ2WEkSxvfnBjkroUi7Syb eG1d4xMo10VND3gKFfHjZX4mUIIeGd1VSqwWojzLbSbdFCnRAF/FKyH1gs3VP/gd1npj Y5DRuxQMs0XEPW56w4/IIgWS+XMDZm1ulpjDfTqFiKT8nFqe23ivhOjkenWBUae6CaPu ojEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LJecx2ZsMdIVOQZS6lU85yE7zbpg/Ndqod26HP6PGS8=; b=DREh6GUD2mGT+LMXtX6GKJB9s132arS0o2BESpv12hv2GT1ZRnrx2dqkLVjLyRkI5c LTdznU8OcUpJdGPEtPqlGYcgqGCAkLGDPJqauPQVIdge9pPNJmYYdTo1SHzTDTr4cFwP d/I/6ybKzj6w1pjSVp61xJYR1ylzflopjWWqyeiqwuJoURiConv01G+mi7iw3JLEzGLO ub5YW77lA1OFcYJFIocQggDIKyIcL6U02NT+GAB1dmmD/ym8y1RTVs2LaUIavH6LM/vS Jt2lqvHvV3wj2QbN0RQdl2XgU6OGq1m4zQZWTgEGMtjz8UUygK5tPu0yfTiNjr3XgrZg feSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si1148243pjw.100.2019.07.08.18.32.16; Mon, 08 Jul 2019 18:32:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725939AbfGIB30 (ORCPT + 99 others); Mon, 8 Jul 2019 21:29:26 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:40856 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725886AbfGIB3Z (ORCPT ); Mon, 8 Jul 2019 21:29:25 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7407DB1F755D0F616C3A; Tue, 9 Jul 2019 09:29:23 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Tue, 9 Jul 2019 09:29:16 +0800 From: Wei Yongjun To: Marcel Holtmann , Johan Hedberg , Matthias Kaehlcke CC: Wei Yongjun , , Subject: [PATCH -next] Bluetooth: hci_qca: Use kfree_skb() instead of kfree() Date: Tue, 9 Jul 2019 01:35:30 +0000 Message-ID: <20190709013530.11865-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Use kfree_skb() instead of kfree() to free sk_buff. Fixes: 2faa3f15fa2f ("Bluetooth: hci_qca: wcn3990: Drop baudrate change vendor event") Signed-off-by: Wei Yongjun --- drivers/bluetooth/hci_qca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 9a5c9c1f9484..cbae86e55aed 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -909,7 +909,7 @@ static int qca_recv_event(struct hci_dev *hdev, struct sk_buff *skb) if (hdr->evt == HCI_EV_VENDOR) complete(&qca->drop_ev_comp); - kfree(skb); + kfree_skb(skb); return 0; }