Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3551582pxb; Mon, 16 Nov 2020 18:53:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3EwpUuD3nHDDJZI1yHVv8HzxNcL3DeRJ/SDaOkrOmsohD/8bDuzLVI/p9GsiL8IEIhH5Z X-Received: by 2002:a50:ed96:: with SMTP id h22mr18896864edr.336.1605581621707; Mon, 16 Nov 2020 18:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605581621; cv=none; d=google.com; s=arc-20160816; b=d2a6tDxicuAvJPtU1I7Vm7PLeCRIiLtIMvqkXTcqA5MhYzmL5leqcBGFqLHunY2DA7 Sx5FGW8YfuATPCktTqZpXtnyjsh3n1SOqHwR2tmdgTLsrf73/oLolhcW0/zBp/xu7iP7 Gf0d/il/hNfoOrU9EE4f9YA6SiZWN6oAXd03rBAvs15rYcT/dBF7Io9arZuS4awJOOgx 97dCpcpOEqE1g5AJwB10nfAubDvCptBsCQgyTPq4BmAo+hhS5qHDN1xFKZGQML6ZWVlB P9CHzF40uyGZXr+MB1mgupICj7s4DpXVrskQd8CEd4smBhd4CXtO5TYQOBYAiP2yVm6p il+Q== 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; bh=bl+xhZu0b2SFuvVA+bTsxtMUYcodJu+4oUKziwJQaio=; b=x4aUeUfckb0sgNZH+Avo21WaXldrRfPImclRbW6vtJxId6Aezx0VAGqDWeK69VoHn6 Tbc0hBBluPEmT0p5tYb/ynAlxkX2Tg7ce6HZxP6RYZyNGMfN58sOEI13HTWfHjo0z+kn KK9LGriZMU3nv6vtY4EfmIhRHCW+VebfEhSdZCHSS2pMUDobbO0ZAgWD1Kb4Imsuv3Vt KtJ4pa7+Kqku+ODkhxeFPhxafJ9cC/sZLTEzp0dxbZVbrVJHD4QoBC9ZcHt1gNSInwmf PE6+YaV3qiMe+p/Q66poMprW7W0xNbph0cFrPRU4rJ/ul5a/G8lWdCLr/yGCso5mYyLQ aHuw== 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 g3si12965488ejf.326.2020.11.16.18.53.19; Mon, 16 Nov 2020 18:53:41 -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 S1726342AbgKQCvq (ORCPT + 99 others); Mon, 16 Nov 2020 21:51:46 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7692 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbgKQCvq (ORCPT ); Mon, 16 Nov 2020 21:51:46 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CZr713ZY4zkYgG; Tue, 17 Nov 2020 10:51:25 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Tue, 17 Nov 2020 10:51:32 +0800 From: Chen Zhou To: , CC: , , , , Subject: [PATCH] drm/msm/dpu: Fix error return code in dpu_mdss_init() Date: Tue, 17 Nov 2020 10:56:17 +0800 Message-ID: <20201117025617.168259-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix to return a negative error code from the error handling case instead of 0 in function dpu_mdss_init(), as done elsewhere in this function. Fixes: 070e64dc1bbc ("drm/msm/dpu: Convert to a chained irq chip") Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c index cd4078807db1..6e600b4ca995 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c @@ -297,8 +297,10 @@ int dpu_mdss_init(struct drm_device *dev) goto irq_domain_error; irq = platform_get_irq(pdev, 0); - if (irq < 0) + if (irq < 0) { + ret = irq; goto irq_error; + } irq_set_chained_handler_and_data(irq, dpu_mdss_irq, dpu_mdss); -- 2.20.1