From patchwork Sat Apr 10 01:19:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 418822 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2033700jai; Fri, 9 Apr 2021 18:19:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3IPcrkn6fzLPtE6Zwy7c3bk2MQRLkDvB5Dg+O2dD25n6UGtqNqvm+5D9Zwq781NGzWE3y X-Received: by 2002:aa7:d5c9:: with SMTP id d9mr19680933eds.335.1618017546695; Fri, 09 Apr 2021 18:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618017546; cv=none; d=google.com; s=arc-20160816; b=HOld257X87mkFU1wv4abOBd3ooJAnToylXt8srn+NV4WhrBkaBrwnwEFmghyWYltNR Qp8J01qKh7mH3bX+PBmK+5uiA8EoGcfjOcjIUGPSOsY3yn5Oz4tE//A7JsMWoyxZGggj twrBvWkpfgIyBQ8jWvBskVFOb2IoOcZ/iBj3b55BsrFJo+G7fE1Znshi4mP4H2ZUnvtq XyTdlEu7gaoj54cbEM3Wu/oKI26Oy0k9g2cZzDIP8e4lyhbhSoEhf8fOqKQqfhnbK8/f v7l+VHO9pCGXFpsfpEtHvvmytoiLQgTi8GzAC+rl/SylYAe1FvlzlQGkElgibBaN+VVs zsAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cXbadlhQap92WD3Oxzmo0aIh3c0IVq45U8NgZ/myc0w=; b=SS2OY2tPfRQMHJ1B6/smzsFp7pCWGRi/bknVfH1rWph0BXXJNPeJLCOaI7tLoU4Ljt EjmEeCrS+Pxnu0PiCy7F4LQeDrCgx+4GPXcREYSxI4PMKVlR/KJLYV0nn3UfCAp4OccG LflXSsjePcu6NfGJBSQkHbo/6ejuQfRaWnUKO1/UAbyxog3btZIUjKCjb/bXWeBluC3C EQijBDgjOkyVMRiSjUdNjF6jw7getL/Jv7f8C32AXAZw9VVDVApTXBP+2uwShUXiWhlO EOtX9R2MAlgPXlrAFkEuTwIEMocl+XgvaRnEAdDY21umBYLlrXDY6pQQsA8sWSZON0dT BKwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1qJfsd3; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si3342580edt.357.2021.04.09.18.19.06; Fri, 09 Apr 2021 18:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=J1qJfsd3; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235324AbhDJBTS (ORCPT + 16 others); Fri, 9 Apr 2021 21:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235320AbhDJBTS (ORCPT ); Fri, 9 Apr 2021 21:19:18 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A16C061762 for ; Fri, 9 Apr 2021 18:19:04 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id b4so12450182lfi.6 for ; Fri, 09 Apr 2021 18:19:04 -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:mime-version :content-transfer-encoding; bh=cXbadlhQap92WD3Oxzmo0aIh3c0IVq45U8NgZ/myc0w=; b=J1qJfsd3G51VUtZHejH2W0xArwQAEIsoz7Ag3L9pkjuW9XHmrSxPCeCc/ASZnF+sVm ao5RvymWUw/ApUSWMZVl6cjcbtbY2hofZkTz5+q4f0F20ggHftxfnxOj79pUZp4JT65A eqSvZZmRYJXudweA/UN3bqVjQOwqxvSuPk78zAP07Mb5GGvhPeep9m2Qek4RDmaa3Rhp 3G5eRSYhob8ZlNUGS9ePi40CfXpSKWDW4BvXvbAbcl1l6vYmBzr2R63UYbOJ80o+mQWO M2zVqUeysH85gJUPIBpalHz32PcA+YL72ITBld7kdu4yyKLFZ3TFSQ61ZODP9bAqNs/g uCTg== 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:mime-version :content-transfer-encoding; bh=cXbadlhQap92WD3Oxzmo0aIh3c0IVq45U8NgZ/myc0w=; b=YdtSazplzj1pcJ6E3VNmtPIZD+/0Aeo72TC+7Vg/9y58Ob9tJ6wWRGfjNTGcJY35TB MaYkLLPkMu+xKkCrPuQ30vevPCip0cwVVncA2ehMQh6DNuauVXZJ18O4FjhquX/327N0 a4Akm49FUyXbLApMaLZ1TLQs/xqe4GHLK8QR2ci2Y/+hWOTnf2noHyTULqFayxI4R1R3 ExixkUDQtzrPIWhKoC4UtKmm5ul1S/lgsofAS9V6OZlb4ef+d/kHkecv9oL6Q0XhAl2y aVRYz8ak5Df9xnA8cZDhlUskTZIrnhu6bi5fq5F4ZbqPXNAMZvR38KKz7UNcViAWEbv/ qmEw== X-Gm-Message-State: AOAM532Hr5z0V2XwmmMZhbB2C4xxusnXSjrPbFM4oytqjAcDDCkDghty vxHSvTKEOEvWLkTUxARv3T6W0A== X-Received: by 2002:ac2:5446:: with SMTP id d6mr11571187lfn.527.1618017543025; Fri, 09 Apr 2021 18:19:03 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id h4sm614132lfv.22.2021.04.09.18.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 18:19:02 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Jonathan Marek Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, kernel test robot Subject: [PATCH] drm/msm/dsi: dsi_phy_28nm_8960: fix uninitialized variable access Date: Sat, 10 Apr 2021 04:19:01 +0300 Message-Id: <20210410011901.1735866-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The parent_name initialization was lost in refactoring, restore it now. Fixes: 5d13459650b3 ("drm/msm/dsi: push provided clocks handling into a generic code") Reported-by: kernel test robot Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.30.2 Reviewed-by: Abhinav Kumar diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c index 582b1428f971..86e40a0d41a3 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c @@ -405,6 +405,10 @@ static int pll_28nm_register(struct dsi_pll_28nm *pll_28nm, struct clk_hw **prov if (!vco_name) return -ENOMEM; + parent_name = devm_kzalloc(dev, 32, GFP_KERNEL); + if (!parent_name) + return -ENOMEM; + clk_name = devm_kzalloc(dev, 32, GFP_KERNEL); if (!clk_name) return -ENOMEM;