Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp776928pxy; Sun, 1 Aug 2021 01:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAomsHAe1zKX0SMg2KQM38COFYJZml7yqdcV/4L+iXb4iuzH5PpVAxAkxKMLa1nvnrYKgF X-Received: by 2002:a17:907:2703:: with SMTP id w3mr10473226ejk.217.1627808226226; Sun, 01 Aug 2021 01:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627808226; cv=none; d=google.com; s=arc-20160816; b=bz6iK2HQL1Px1NW1P1p/rQqnOVZsIYjOQiFJ0PlkaZ53/ZRcwWb6wRQEdMraah/Oj5 XsgDoMPPUevawghCSzBTRfYZOz+8EpsGEuMkQkABE9s3/gFcn9z+9LVQjMm/aHj5YRm0 oNucSkDwzxfGyZ+3Sd9A8PypH51vnef5lgGcVadqHoFeU6iESre1Vh3JQ34dNFRLDQfO UiUAWYPchybbvMINQcQg+/mcINGLCXglvvAY+bbpIxR+n6ljLQllL1SKuBgBCWjfX63j R/EgGaCjYqpOJi72qJV1jiVZcktLFBtsmosbpJMaa8+GqdaNnxbMNmo6qW0GlCJxxxwU VaNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=8OJUQINl7UgWXdbnxp3od2KyBKmzZJubgZ8n5hg9xkk=; b=XIKyq0Akos9bfKTTay97RM9YbE3LG513XDs1oBRcoGFkoZ8MLE+k3p7sWNkUD/SvBG yPgPvwVwTT3f1VlwTfwePBtK1Pt10sPe982/dvpLoZkOTAPseDUQdwfwp3Ph5458ZmqB HFzgWjXlGAcdvrYh0B6q/n3rBMcuSgWsp/Z0Pv4iz8fKV4iwj/QP0D6RxjIweJHV4o52 SyBIF344td71Szwi9hhSc+zneeegdwqU+FMdIDD9Z3JRGZiedMBBq6GuxpxCbl6N6faW m2o9YQ+Umhoa5/8PBTX/RrFrC7UCeIum/naw/sg4F0BK2d+xk48S+aiXA7YEH2zozyJN jEZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S3zoYP1m; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si4753210edb.251.2021.08.01.01.56.19; Sun, 01 Aug 2021 01:57:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S3zoYP1m; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230087AbhHAIyr (ORCPT + 99 others); Sun, 1 Aug 2021 04:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbhHAIyr (ORCPT ); Sun, 1 Aug 2021 04:54:47 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD8A7C06175F for ; Sun, 1 Aug 2021 01:54:38 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id l19so21400601pjz.0 for ; Sun, 01 Aug 2021 01:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=8OJUQINl7UgWXdbnxp3od2KyBKmzZJubgZ8n5hg9xkk=; b=S3zoYP1mOZfajsoWOygEEkqgVS2cwNFocKyI2l/PV5QY0oMY6fkGqdl6+y6NeqRkTB 1M2lt8LUqKw2ZJK2OXBvQmdnSiaqTFagv4e+QjqCkBk/5a8an8EyPknjYZB7NkY1tH9e zl4+7qlXbdiCr9l+nX0iCSym0ai3CtgEXkbX8aiXe3jtJAJQnPembv3Y7mKHk9QJAMnx FOatUAMo/n0dCKfvN0LYbWCrx0LrlUM+WGZkzGBb6542y/21okSHsPFD6nbDbUdYz5C6 9DkTxiAZbgQgPeJ32zp/QaxkbbQyozbtFuqdGB4XA+9i2eru31ARMd2z2ZuPEYBqTIGY /ABw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=8OJUQINl7UgWXdbnxp3od2KyBKmzZJubgZ8n5hg9xkk=; b=Y2RJppebmR+oxd+SUy2TmJdiFGzMUvMmNedXcwwvpeFarp0fu7NaQaIanXcdB9S3En dgXge+p6lYqyHw6Ewz5hY10MBzxKrAhPWOy25VtIdt4qUoBTHNqInitvWo0N/9X0G4gN o4/X5K01IiT4BKAUG43dRh8A22t7Qx+j9W0y5KPtXcKvQSRvqz7DuWo0Nn3xc0sF61oG iqbzvMEaGUvcByVzpL4pHyqU3u6xQo80Go8MGUkezpiLz1G5sU/wcY2kSH/m57j8zwzy y+R+wnoBzBJZIGmV/aM8Bhbj9DERpM6ITKAzFESdrVh8h1depFfpEr/0r3QKEtEUsKCi yYgQ== X-Gm-Message-State: AOAM530V72h4mkJpKnxJ5ZUb1bM/cLWbjFoBMUJSI0AIXkZ+kSsVaw+L K6LkeOfv48O17T4sI+XfRBSdYP+9PxrpSvGuxrA= X-Received: by 2002:aa7:99c1:0:b029:39a:56d1:6d43 with SMTP id v1-20020aa799c10000b029039a56d16d43mr11159111pfi.58.1627808078228; Sun, 01 Aug 2021 01:54:38 -0700 (PDT) MIME-Version: 1.0 From: nil Yi Date: Sun, 1 Aug 2021 16:54:28 +0800 Message-ID: Subject: [BUG] drivers: bluetooth: bcm203x.c:dangling pointer in function bcm203x_probe To: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, there is a dangling pointer in data->urb in function bcm203x_probe in v5.14-rc3 in function bcm203x_probe : 187: data->urb = usb_alloc_urb(0, GFP_KERNEL); ... 205: usb_free_urb(data->urb); 206: return -ENOMEM; leave a dangling pointer here, I'm not sure whether it can be triggered somewhere. Any feedback would be appreciated, thanks :) Best wishes, Nil Yi