Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp49717imu; Thu, 8 Nov 2018 14:34:29 -0800 (PST) X-Google-Smtp-Source: AJdET5fN0PSwfd11olrf8xp5d/xlkWcTNJOiMJz14I7Ggc/aPWvRDuXLdNW2baZVHV71svj2MaDK X-Received: by 2002:a63:5f41:: with SMTP id t62mr5374009pgb.76.1541716469594; Thu, 08 Nov 2018 14:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716469; cv=none; d=google.com; s=arc-20160816; b=xXqRzZUb8VfU+jjGpLWuFIaOuRWMrCFtcWvPG5CoyA96t4/XYlpBOvZap+AALuE54B gQYGyM/b5WuXoIty3Ydo35J/7KpgP87i3pqKXAxH2WnnnmcOiHf3sgAiYE2Dk4XMtoZ6 Tc3vA+sd+0mVEn3PjaO2XsItRCrQ7abfw85D1WZa8arZ4DsOIMStGC8i/Ug9n7Dzsrx4 KaTMqCVdZ+Q7hxN2yKGbSh7Te0vDy5zb0PLKqdwl2eS3mIxxpMO2fkkguWfKh+LlnY1n zaE0en7TyAHa7By8n2q71fxKCULjPVVv00SRKCH8y5Oy+hy3GLjLZ6GS8Wexmlyc2tda aloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/nE4HNlfR8KH5whCV03+sVl5ViFWcptw5cWTKtPs2Zs=; b=riQ0mtmRvb10GWEGwjm0wC04gI8M+K/+grwKx3oSbBXm3YUzhzFveBfX3KZnMUEZll 56lhPEfwAQ4L9PZGDC8vtitXNvBnER4NM/O24WaaM4eBI9nAOr87JPnhvJCFIS8OYPC0 7P7Bn4HTTw0sPMVYKsQlmYTcw8B5GOwjYuCAWmNCB1OepXMnnCjxQ2L8AxsWUqFRrWKi J9UFMQjfPv9sROB+mFBn1GZag+FLqHBjRMDnjoT2b2pNB3HtUlrQlGrPmMhHV5sNGj0s 9EfrrDxR7tGkogQuiDgwfW/Dj77f4HkqxlgCQMHNlA6aMsjcjJa+HThGIvnUVIPz39cz FYDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A36qLk0V; 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 y73si4749305pgd.478.2018.11.08.14.34.14; Thu, 08 Nov 2018 14:34:29 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=A36qLk0V; 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 S1730347AbeKIHhh (ORCPT + 99 others); Fri, 9 Nov 2018 02:37:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:56092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728654AbeKIHhg (ORCPT ); Fri, 9 Nov 2018 02:37:36 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14265208E3; Thu, 8 Nov 2018 22:00:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714408; bh=niVj0ITQgs3epcShXOAytyhSZsCI2QEsTtmmhUn3Qrs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A36qLk0VGYxriyxSMDdTmssxvHYNGK6/BI+y7+ePnCNFeaynBcIF7eWHSi4j5qz8k q2A1Ju1T3EMosPFVwSu+nATIpIbYqAHV3uLrQiS4RbzppAKYRPmgaxmFaSShFqU2rj RVmt5oaaV53Tn4vV095P/UJWeCc8uwW3X95gQttc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Gustavo A. R. Silva" , Bartlomiej Zolnierkiewicz , Sasha Levin Subject: [PATCH 4.4 065/114] video: fbdev: pxa3xx_gcu: fix error return code in pxa3xx_gcu_probe() Date: Thu, 8 Nov 2018 13:51:20 -0800 Message-Id: <20181108215106.940881350@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 7588f1ecc5f0c914e669d8afb6525f47cd1c4355 ] platform_get_irq() returns an error code, but the pxa3xx_gcu driver ignores it and always returns -ENODEV. This is not correct and, prevents -EPROBE_DEFER from being propagated properly. Also, notice that platform_get_irq() no longer returns 0 on error: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e330b9a6bb35dc7097a4f02cb1ae7b6f96df92af Print and propagate the return value of platform_get_irq on failure. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sasha Levin --- drivers/video/fbdev/pxa3xx-gcu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gcu.c index 50bce45e7f3d..933619da1a94 100644 --- a/drivers/video/fbdev/pxa3xx-gcu.c +++ b/drivers/video/fbdev/pxa3xx-gcu.c @@ -626,8 +626,8 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev) /* request the IRQ */ irq = platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "no IRQ defined\n"); - return -ENODEV; + dev_err(dev, "no IRQ defined: %d\n", irq); + return irq; } ret = devm_request_irq(dev, irq, pxa3xx_gcu_handle_irq, -- 2.17.1