Message ID | 20190905161759.28036-16-mathieu.poirier@linaro.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show
Return-Path: <SRS0=v9qj=XA=vger.kernel.org=linux-pm-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AD5D013BD for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 5 Sep 2019 16:18:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 166852145D for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 5 Sep 2019 16:18:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jZZB1l94" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388682AbfIEQSq (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Thu, 5 Sep 2019 12:18:46 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43336 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388431AbfIEQSU (ORCPT <rfc822;linux-pm@vger.kernel.org>); Thu, 5 Sep 2019 12:18:20 -0400 Received: by mail-pf1-f195.google.com with SMTP id d15so2061123pfo.10 for <linux-pm@vger.kernel.org>; Thu, 05 Sep 2019 09:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k4RSHQziswwPF3IEl7odNlbX/Lq1Hx75YDWK/+CVFu0=; b=jZZB1l94YWLd3tFIaGQ47yvMyJb9LlEazs2Ow8RBBjQ4l/r+vNhmddIWpMfHfHXs50 78rWPPNCOz1OQu1AmHck6xNxXoRE7CFw9P+2slSZQz2Ys6D042/onIrEufTy+6xGnf7G /W7VbSFrbc056Zl/UdlRSDhj5hSjjoWsrULBTO1dp2b+2wVkNBYy15jzvUSO7Yol26Pq +a0ju3yHvCNmc2ezasYLStXloGX/OXTLGO31IarwZm/OPn8nU0nkbRODmTltiIBUdlzi njdrh0EUYg8SUhgdMLrNIUsilQw7WpjaCy9U6aj+BbrkPvrH3K1Yod5NAymx6bhyqYRw 48AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k4RSHQziswwPF3IEl7odNlbX/Lq1Hx75YDWK/+CVFu0=; b=Niu1f1kTMB/eh1LkQKITtm3pyeACykI+z3c3R1LfaPx5QUNHzkqUXG2A2BMf0toIE9 03sWTkSY0WsL3ZRu9xMqHGKplh56mBidG2lclxtUXJgnZE4rQTcJfAWF260fOzXi111E gUSJqxIXCWdR8ueXAaAC4AtKPDfGjlgVklCwIzY4xh+/43ihEvRVMmE5ok677BFLAZCH 05V6W7Hpn2F2btdLEgSJ7/OpsgAJPm6VkT4dJJsYgEup3L/iwl5IpURBUD2KDUko9Z/q fIq1kJUTQ21/0G5IIh9XIQ01Z3GtPIBdn1DGaxGBZXVF09/d6ctAmKx6Au6surTZZfNB Qs3w== X-Gm-Message-State: APjAAAXpgnO7Lz77eUODB/3Q4hTKiiwAyNMRpdyEMvErdTeocZvpEgb1 gHF8xPO6nRz/8XbF2QuRT0GeuA== X-Google-Smtp-Source: APXvYqylgGgnlf/Z0Orza9qJRrWxcszrwnK+vdVT7tg0cYX2LQXbbeSPDVM6mlYFYgUjBYVURutriw== X-Received: by 2002:a63:714a:: with SMTP id b10mr4066928pgn.25.1567700299222; Thu, 05 Sep 2019 09:18:19 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id m129sm6324005pga.39.2019.09.05.09.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 09:18:18 -0700 (PDT) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: stable@vger.kernel.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [BACKPORT 4.14.y 15/18] ASoC: davinci: Kill BUG_ON() usage Date: Thu, 5 Sep 2019 10:17:56 -0600 Message-Id: <20190905161759.28036-16-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190905161759.28036-1-mathieu.poirier@linaro.org> References: <20190905161759.28036-1-mathieu.poirier@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
Backport candidate from TI 4.14 product kernel
|
expand
|
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index af6cd8b874f5..b4e6f4a04cb6 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -1748,7 +1748,8 @@ static int davinci_mcasp_get_dma_type(struct davinci_mcasp *mcasp) PTR_ERR(chan)); return PTR_ERR(chan); } - BUG_ON(!chan->device || !chan->device->dev); + if (WARN_ON(!chan->device || !chan->device->dev)) + return -EINVAL; if (chan->device->dev->of_node) ret = of_property_read_string(chan->device->dev->of_node,