Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3986503pxb; Tue, 2 Mar 2021 03:59:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkFFGoJYOkwEg3idtbaORNMDNOoHUkTE2Yiwmvkn6aSLbG9Z8xYaS7sP1WKYrw+gl0BBjw X-Received: by 2002:a17:906:c08f:: with SMTP id f15mr3150586ejz.318.1614686371556; Tue, 02 Mar 2021 03:59:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614686371; cv=none; d=google.com; s=arc-20160816; b=aWiu1h/Wic5WGzzn1Gg8Fo4qhmSMsZGpfoVlR7UpSolxeJ9XBFfk9wzlXbXtb54Ps2 Wd6EHaPW7wEveOwKrvn9mnJueORuGhNSm86eJjyQE2cuQoVQZycA5H3ixz99hk/VuuF5 fEVgI0hcK8MuN31H8Nv9I0Qyq8o3+awdZ13A5Is/X0L0WSGyqt2cOxgLbJlIYGmKofWl 2ejC3EaVA/DXE5g3Hjq/pHwzPZBV+gILlCUMFemxPyRoRNeQXyU0P8i17IreV508DZT6 maz8RL7uh35+gzcwCJr7tQJhP5RxkaFEIBj1dSoTFJt4ie8ihGzXHgn1v0Sj/hL+cpdb Qamw== 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=KRQpABmi0zRZ3A1+x2PodSe4Ksnhca0xPA2ItJL8T6g=; b=sO6QQx8seH3Hsz+nkk3OgxrFcX7JiIPukxGYw1CuDqqqnBjxpeDcKI70zGqj2pgyAX WcyGd+KefpuEpDNVoifuydCuhY3kPIdJq/lDwDgHbaJ1pcSkJJqW0O8sGOQZLbq806HF ++3ba+YEwY0ZL5AGCnn9wdkR5IV8MXHtLkQDDvee/Xxnmd7pl6WeUULPWbuwDOIPm9oV qSZHR4X3sqjr4cKRfzL1I+al/w7b2Gz8tolyYeY/mWqSMHzsJLZ2KHHHuK5rSOGFc11a a2fntREK+tdka26JsQnwIzlLB0xtOFcmd1lNsiG8HXF8cljcz8GRzMdeSYCFLSf9aX+0 OwvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fCL1Nenq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp14si5311831ejb.435.2021.03.02.03.59.07; Tue, 02 Mar 2021 03:59:31 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fCL1Nenq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241940AbhCBCKo (ORCPT + 99 others); Mon, 1 Mar 2021 21:10:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:49570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241597AbhCATcu (ORCPT ); Mon, 1 Mar 2021 14:32:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B532264F3C; Mon, 1 Mar 2021 16:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616724; bh=K51Q5I3uWK4AFHrP79hvEVI3dCpSYpD0n9ZIFvf+Z5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fCL1NenqIifREI5toNAaQbhd+GvsXt5wgGTgCD5xQGtogY/9N4oAYjop1FmF0KZMm 9ah1uP6lcbD8N7dhKl9RaRLH06Thm3ftDpVzZtcTH7I0TT1E8jCr9OFFyXpx45pWHa noqpgNvgmozoE+lDbzAeFj2SCyWTViX2rvuP1Iro= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Jialin Zhang , Daniel Vetter , Sasha Levin Subject: [PATCH 4.19 074/247] drm/gma500: Fix error return code in psb_driver_load() Date: Mon, 1 Mar 2021 17:11:34 +0100 Message-Id: <20210301161035.309422072@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jialin Zhang [ Upstream commit 6926872ae24452d4f2176a3ba2dee659497de2c4 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 5c49fd3aa0ab ("gma500: Add the core DRM files and headers") Reported-by: Hulk Robot Signed-off-by: Jialin Zhang Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20201130020216.1906141-1-zhangjialin11@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/gma500/psb_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index ac32ab5aa0027..2fa3c7fc4b6d5 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -316,6 +316,8 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags) if (ret) goto out_err; + ret = -ENOMEM; + dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, 0); if (!dev_priv->mmu) goto out_err; -- 2.27.0