Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp296634ybb; Tue, 7 Apr 2020 23:17:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKuiknlcA2Xw8IRL5aSA5mfGKFajnwvh+mEPJjYX7+FPYyUoucYAYeNuy4OrEh17mlmQ3pV X-Received: by 2002:aca:2811:: with SMTP id 17mr1381219oix.126.1586326669806; Tue, 07 Apr 2020 23:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586326669; cv=none; d=google.com; s=arc-20160816; b=0eX6B/bTSOkhxeAdmNJZWjgu9VNah0b73o0scgbGm+QcyKY6dh/mPrqv4xPgQLqwa3 PyT2o0kdcJLqszKrUuExJM++j4ZZIRQDSgxCNxtdB5hI+cR05XWMOEQVjoEUfTzdEind 8PgPVpuSdKL8N5F/V9LeOIa6Zt6uSNQ6s3eYjyihb1s42Q0d/+Pk29ARA1eT2PnbGNsX gItC0LMD13KERaU7MMr2ABxmoKNOJMERWesFBVWTQoUwazbqz5mfjTClkJdbtQ4WOnzm M5j2wrBWsI0fbrw3l0eRqVibUgc/jArEKn3jL+Pp60r8iZ3qakd0SDpQiUiwRFFKhWdy Es8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=XXqaJ589fWHLORZunLR/7NEIIlkqPtBAn8cyjjoVFR8=; b=JYCZ9Yjnpr+iOQFUCoSg2CaKANfDnBhonyT0cFniH/CPPtqOyyEQuQOqknoG083MRv bpJEnRhydIXU9EA6CpTxwAh/9a1J3T7b6E3S93KvUfFfVht9p26aWoDKjn6+iSVvJau9 3a8JZ5nI/xl3Nem6J4hBjAf5KFC+jKvSkz5otqpgowOqUO9VCBsylSV76ruOiRf7/0oZ TVMZdRbgEhtJY5+fVC3HKzxpH64Y3ES412FLPURBVLjActteYL1eAycvdme8q2QC6ydJ QEsfn/QOnCZC5cVJf8si40fld+Rd5krlL1hDaYg8J319p5POP/PQkdXh5msDv0V6bV3J xUWw== 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 e14si2551453otf.226.2020.04.07.23.17.35; Tue, 07 Apr 2020 23:17:49 -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 S1726366AbgDHGRc (ORCPT + 99 others); Wed, 8 Apr 2020 02:17:32 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49573 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbgDHGRc (ORCPT ); Wed, 8 Apr 2020 02:17:32 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 76B97CECE0; Wed, 8 Apr 2020 08:27:05 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] bluetooth: btusb: check for NULL in btusb_find_altsetting() From: Marcel Holtmann In-Reply-To: <20200408052703.7351-1-sathish.narasimman@intel.com> Date: Wed, 8 Apr 2020 08:17:30 +0200 Cc: Bluez mailing list , Sathish Narasimman Content-Transfer-Encoding: 7bit Message-Id: <59D55FAA-CC46-4B13-AD18-D70E9C6C4998@holtmann.org> References: <20200408052703.7351-1-sathish.narasimman@intel.com> To: Sathish Narasimman X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Satish, > The new btusb_find_altsetting() dereferences it without checking > the check is added in this patch > > Signed-off-by: Sathish Narasimman > --- > drivers/bluetooth/btusb.c | 3 +++ > 1 file changed, 3 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel