Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp644699pxu; Tue, 5 Jan 2021 23:54:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNSzyJWKUy5r2nmWCJ6fTUIfk35oKT4XiYBjBLmEzc8lUymYSar2uMY2heGqKT8lDPFdbV X-Received: by 2002:a50:ee97:: with SMTP id f23mr2986115edr.311.1609919642059; Tue, 05 Jan 2021 23:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609919642; cv=none; d=google.com; s=arc-20160816; b=vYldv2NpMfgLzndfukx0QBKTtyGQNHJ7OPo8fgzXzhUwAR/OTsozL4E4kHEnw0wX18 vzsalcr7JYpg2nWBu117OO6M6BPASfsm8HdXZkOQKihV9gC4I/8sdOk72/zXwyhsmzID mTU21YTPK1Ptn11N60x7xP7eFmPw3XQYkweBkNcdtB2imMV+RLUG8TwbAXD+6lYt6Ln3 44D+I8A0gtoHgTEq9FYWRxT1GndrI/RhzwvUr00hKU32GkvrEnNRhsXGTWdaur3SJGlk 7BwtaG/FzF/Hf0aF65BGcrdLsR7gvDKa1dPMMIrGC49rSsnB9D/AdsDiI6O+ZdpOgYx6 yeBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=zsBLicdJwwGusQd1ayU93rMZOUCsZo2wIPLh+CuleHY=; b=ot8f7lpCMhW3NMSga60HNfuGNZ07cdVn4kqB0VYY7lM3enKLaQoo2K8XidBN7gvYkf gAoHZ02RBo0fsUTMBiQw1gLNv5pu6Z/r9I3HGLwVlh+2CN96VaVS+PqrL6oIGkjk+GDd 6g/3YEX8iJw+1dVH+Z0Wiov2lQQKjiwVsZCp0C2P3euVpWbJoNRktSWdrT+LvCO4pg2b JwtVQakMTS3KCJNOsjz7bGyDFKuojWWjvGYK295rh9Ap0h1YMna/x6WylgqPkVnr8z3J dnaf4NREMACwf2NFtZrDnl//vWaLx5pcQw4Acy2olQdam4ryyTlAGBKYpCD32O9dh/I+ NiFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zc8si615669ejb.662.2021.01.05.23.53.38; Tue, 05 Jan 2021 23:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbhAFHvd (ORCPT + 99 others); Wed, 6 Jan 2021 02:51:33 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:57326 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbhAFHvd (ORCPT ); Wed, 6 Jan 2021 02:51:33 -0500 Received: from marcel-macbook.holtmann.net (p5b3d23d0.dip0.t-ipconnect.de [91.61.35.208]) by mail.holtmann.org (Postfix) with ESMTPSA id 7B6FDCED14; Wed, 6 Jan 2021 08:57:43 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: [PATCH v2] Bluetooth: btrtl: Add null check in setup From: Marcel Holtmann In-Reply-To: <20210105205855.v2.1.I9438ef1f79fa1132e74c67b489123291080b9a8c@changeid> Date: Wed, 6 Jan 2021 08:50:22 +0100 Cc: CrosBT Upstreaming , linux-bluetooth , Johan Hedberg , Daniel Winkler , LKML , Luiz Augusto von Dentz Content-Transfer-Encoding: 7bit Message-Id: References: <20210105205855.v2.1.I9438ef1f79fa1132e74c67b489123291080b9a8c@changeid> To: Abhishek Pandit-Subedi X-Mailer: Apple Mail (2.3654.40.0.2.32) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Abhishek, > btrtl_dev->ic_info is only available from the controller on cold boot > (the lmp subversion matches the device model and this is used to look up > the ic_info). On warm boots (firmware already loaded), > btrtl_dev->ic_info is null. > > Fixes: 05672a2c14a4 (Bluetooth: btrtl: Enable central-peripheral role) > Signed-off-by: Abhishek Pandit-Subedi > --- > > Changes in v2: > - Added nullcheck with goto done > > drivers/bluetooth/btrtl.c | 4 ++++ > 1 file changed, 4 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel