Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp450939imm; Wed, 18 Jul 2018 05:10:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf83nZfCKpgHrJ6Hr70UVZ7W5w/Whqbjs3J4vgbcyymRfuxgZceQjaY2uRJj9iRnAYNmcqw X-Received: by 2002:a62:1314:: with SMTP id b20-v6mr4998881pfj.230.1531915856042; Wed, 18 Jul 2018 05:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531915856; cv=none; d=google.com; s=arc-20160816; b=uhDiLMxRqOpYnofsuJHE2ax+5UyinOCmFD7oYVBvfHfkOkPTuYerCIiP4FZlL8GcKg /EfpCEjxTRz+zvtvgOd8mAkU2gRdbpebMJ5X5bUxZ43vRDHhLnal65p1JPAb5S4j0ZnP YlNAkFpGUZen/W/UOj6NtORDzQpGaL2m1pKDhYh3tWDqLLzOws5Yl1fhFExu3t4oiM2N IQ/RJL5h0RiZkaJGVsfpU/xTcqX18ToD7d246/RALiARBlW8t6M+XBzTjuKJoG73N+cv mvOwIoD2fl6QNMMWS+sP39o8+zWEXFI8e0zLdfqlXgkkzUDAoE1VXzz4f60vZXsamq87 xeCA== 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:arc-authentication-results; bh=+Q7jPDD1TqkkYRqTJ44EuYMsO66arNYh0nZgmSWuRI8=; b=ISMWSiiQWdVKJ4Hi0VCHK/Da3lSf73lT7MJGOEiiHzNrVeUnKygfh04LVDz7iR7GPt hEIVgYyZWIsi/i8RnCZsCq0lFSBxkCwXCFXCWSq+SvoKm3ipU4sNI93DeqiOPSvvf9Vp 02kMMcPJEie415UXSOURHaW6rd7MfyphPLLblkPsd4qhnTQhVvoaABJIyBPSP8raALLw L5RWyam9jIbMquVSh4fgWQGXDQ8Raemm4+rPDJiB+a7bDE5J+ITjqvrz7T0JSHc3ZVbm x4cCgwiS6LsMdC07IdFNB/Omj59Uda7UxAGJpEhEOS1oFtsztGZbkXJAw/xn8AMAsyMC FkgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 25-v6si3580316pgk.438.2018.07.18.05.10.41; Wed, 18 Jul 2018 05:10:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730567AbeGRMrg convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Jul 2018 08:47:36 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:35841 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbeGRMrg (ORCPT ); Wed, 18 Jul 2018 08:47:36 -0400 Received: from [192.168.0.117] (188.146.100.122.nat.umts.dynamic.t-mobile.pl [188.146.100.122]) by mail.holtmann.org (Postfix) with ESMTPSA id D9182CF2B8; Wed, 18 Jul 2018 14:16:51 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: [PATCH] Bluetooth:hci_bcm:Check return value from devm_clk_get From: Marcel Holtmann In-Reply-To: <20180717120635.25259-1-raghuhack78@gmail.com> Date: Wed, 18 Jul 2018 14:09:55 +0200 Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hedberg Content-Transfer-Encoding: 8BIT Message-Id: <5018E00B-7642-435F-AB9E-1EEB7DD5A885@holtmann.org> References: <5b4ddae5.1c69fb81.61055.042e.GMRIR@mx.google.com> <20180717120635.25259-1-raghuhack78@gmail.com> To: RAGHU Halharvi X-Mailer: Apple Mail (2.3445.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Raghu, > * Check return value from devm_clk_get & return appropriate error. > --- > drivers/bluetooth/hci_bcm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c > index 441f5e1deb11..1295cc89d702 100644 > --- a/drivers/bluetooth/hci_bcm.c > +++ b/drivers/bluetooth/hci_bcm.c > @@ -910,6 +910,8 @@ static int bcm_get_resources(struct bcm_device *dev) > return 0; > > dev->clk = devm_clk_get(dev->dev, NULL); > + if (IS_ERR(dev->clk)) > + return PTR_ERR(dev->clk); so I assumed this was not done on purpose and allow for dev->clk = NULL since all other clock handling functions will cope with it. Can someone NAK or ACK this patch? Regards Marcel