Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3708877ybv; Mon, 10 Feb 2020 05:06:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxwLM8X/L//szD++aQIWwgkBnG0TXCVvxserR0lyKDD05g6WSOGwx8T6eYeIjZaako75fDY X-Received: by 2002:a05:6830:22c3:: with SMTP id q3mr939552otc.335.1581339981217; Mon, 10 Feb 2020 05:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581339981; cv=none; d=google.com; s=arc-20160816; b=EwjGpPsTHPKWUg4txhpkJAhq/CX0F3QH2M9u4iLYtcR8by8AhwbW8oXtLdBzpAKapy rxEbLnBrRJXXwQMXpPSKjYeR60GmQJMVYmft2dHy61rq1VTkYdAYlIY7xuBxpjVjRcv2 Sxi9f6/QlGOnopG7UD64buJM4qvErOUdL2CindKz1oSU+sLVTIMtw9C2niJnynDgKDm7 0fC6yRx+JFo7JEtjvWeGI8GPGzwRkGnYVD2RcwpxGMammUdlncJx6bsAi9JyRTMDX3Lb zs8+NXn9UYgko2wkfW0hRjiwmVxUg2LSiMfjI3r8hqjpoKuvAWlvtTYpmkpuYYEFMihA OC9w== 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=uLAdTIel3bxwfgehCDzEOVkXqI/Gt000EyelL0Tsyp4=; b=DHZYnls7A0RCErLpoemNGgb4bopUIT56Nk+jEIu3cK/ef9rjsIIVOfJAFgCz4FYhZA A32oK8nHrwoxFIN2DAYfpQ/r/H1qDjz99gLlI8VXZ0MfLh/sdlJUoPQXAfoD/qXvA0oI QmU0+taGq8NkpUc2jn/DXSjuIBJ/UYDH4wafo3mxWq1gGuTJeL3Dnn/R280tITpcaj6w GYkoOH2kf7ytW7fILZ8PYWwXmSL5+RzXTyEXKeJkvGMrvapR/3w6KQrZUcovN/x0s7CF T0eJs/n8wIK/9Mbx8OsANTo+VM2KAtEHud6E1uW15vOkeiceeRgjppKztZPsb4t19EnU A9eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lt5+eZpl; 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 i25si108600oii.259.2020.02.10.05.06.09; Mon, 10 Feb 2020 05:06:21 -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=lt5+eZpl; 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 S1729806AbgBJNGG (ORCPT + 99 others); Mon, 10 Feb 2020 08:06:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:38940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729576AbgBJMj5 (ORCPT ); Mon, 10 Feb 2020 07:39:57 -0500 Received: from localhost (unknown [209.37.97.194]) (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 538E92465D; Mon, 10 Feb 2020 12:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338397; bh=u5gjxbGuLQJXByiCbFPs4mdb0PD/2AnCQv8x4gXAxPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lt5+eZplJcWwm4kW7ymNtmRMTGXg/qsQ0TsI+wAIlAQkpS1Zic2TRGgADnDI3Mlxk 6TReIbuWvyRm0Zo8kRzC6VjMr4knHDo3Lw05HdkaIlnkDQ1+uw3LekUXzSRKipnVjo ryJ0ucf+wddlUGWIk2zi2jJtpTaP85RpzALcTgbM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kishon Vijay Abraham I , Lorenzo Pieralisi Subject: [PATCH 5.5 093/367] PCI: keystone: Fix error handling when "num-viewport" DT property is not populated Date: Mon, 10 Feb 2020 04:30:06 -0800 Message-Id: <20200210122432.949170583@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Kishon Vijay Abraham I commit b0de922af53eede340986a2d05b6cd4b6d6efa43 upstream. Fix error handling when "num-viewport" DT property is not populated. Fixes: 23284ad677a9 ("PCI: keystone: Add support for PCIe EP in AM654x Platforms") Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Lorenzo Pieralisi Cc: stable@vger.kernel.org # v5.2+ Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/dwc/pci-keystone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -1354,7 +1354,7 @@ static int __init ks_pcie_probe(struct p ret = of_property_read_u32(np, "num-viewport", &num_viewport); if (ret < 0) { dev_err(dev, "unable to read *num-viewport* property\n"); - return ret; + goto err_get_sync; } /*