Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2193581iof; Tue, 7 Jun 2022 22:47:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6qrOnZb2lMJFaKJOgbrhOgAPfC53W4fXdc/YkKoDUNSWQ6fF+T2QPQTgAJs4O3MsPf9cg X-Received: by 2002:a05:6a00:1a42:b0:51c:27ee:9393 with SMTP id h2-20020a056a001a4200b0051c27ee9393mr11522743pfv.78.1654667251276; Tue, 07 Jun 2022 22:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667251; cv=none; d=google.com; s=arc-20160816; b=iA5+L2e/PPquJIf1s5sFTvPA2zfmYm3yB3E60OjziocGS/qTV2uw3iv8DnOinIvDWJ JoiHWH5/L4aM45dlEawmLZjaXOeCX1Afiv/qXppeCPs4JT1Jog9xFIG1uiE3ZicxrV7W uaMdPdPu6M+kpBlc9EV7SxvOlGlUXMn8MDHcX3B351WY5AHCrADlFKqhBXbD1SKXXjLw 273tTJ8BWGTfA1SKF9D7M6dV3dP0j6E1IRkLd6v8hbG97nHtS+Lh54qD2QBQJHd4yztN kdz/MlHwp4YkrxTnTv/GQ9GcpSVsk0PyPaqp85FzjvKVEv9uFJoLk2ebFdN6YRhIAdQw bCPg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RFPCD4xLIs+lhZaeWBtdwtuOX5sAHQYSyIzP6xSi9E0=; b=pVVbv/WKxBhmcMGvr5Cz+9G6AZ5D9dC7MaPrvNRHJEvXZDRmVTLxV7m3v849m0bNSU +pLeEDK5C47RbJovvNzXPzRG8X5IuLAG8QQuk/afsukqzPGZtHEKwm97slVMxfqYLnnt fT1FV8Nnb8ZVatGwRNV7n7ijdWoAI0mdWFW2plKDoF+3J6dSA0y+7L/f196Wm+4EM8YW kjs1PWGu5nMeFGsPpguJytzvx8JO8gnoBkAffPKSeHtnl1U3PwWwVi/0E34X06BfZG2y rZBKpaSfgwtGAnBDe8+cwSSEJppJHnVO/poKUaxa9dmouGLaOyD5/24CoIZoOuYJgZob Ttdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="qmi265/1"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u18-20020a17090341d200b0015d29ba7843si30086195ple.262.2022.06.07.22.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:47:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="qmi265/1"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4BBC63C7800; Tue, 7 Jun 2022 22:12:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387563AbiFHAaV (ORCPT + 99 others); Tue, 7 Jun 2022 20:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384228AbiFGVyV (ORCPT ); Tue, 7 Jun 2022 17:54:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7684334BA5; Tue, 7 Jun 2022 12:13:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4CF916190D; Tue, 7 Jun 2022 19:13:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58BD9C385A2; Tue, 7 Jun 2022 19:13:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629188; bh=aUkYZA2RdSkilF75ZvUyPDbWjfQsE3ogg5hPbwbWvtk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qmi265/1NwHVJBR4twAQjlfqedz44UMLhlZ4F/XWsXHEty+siQ9bcXjfKDYF/uc9y ZqKQk7lZLqOHIRog7dJXbYftM1WleXqWZxvV0H6EzyhAjOF9J47Bie6DAxGNDKg4w6 /8plghkCi6tCpbnRZ9JwhnHqd3Ly70b9bBEm5dwE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zeal Robot , Lv Ruyi , Stephen Boyd , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 5.18 602/879] drm/msm/dpu: fix error check return value of irq_of_parse_and_map() Date: Tue, 7 Jun 2022 19:02:00 +0200 Message-Id: <20220607165020.326178256@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lv Ruyi [ Upstream commit 95093595914c17f32e1d6228b4db06fab8cebd35 ] The irq_of_parse_and_map() function returns 0 on failure, and does not return a negative value anyhow, so never enter this conditional branch. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Reported-by: Zeal Robot Signed-off-by: Lv Ruyi Reviewed-by: Stephen Boyd Patchwork: https://patchwork.freedesktop.org/patch/483291/ Link: https://lore.kernel.org/r/20220425090947.3498897-1-lv.ruyi@zte.com.cn Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index c8089678f733..c95bacd4f458 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -1244,7 +1244,7 @@ static int dpu_bind(struct device *dev, struct device *master, void *data) priv->kms = &dpu_kms->base; - return ret; + return 0; } static void dpu_unbind(struct device *dev, struct device *master, void *data) -- 2.35.1