Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9126655pxu; Mon, 28 Dec 2020 07:16:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHPon2n1jYP7GaIPWezcvrWU45M+KSW/KBvSXn7muUO69WkJtLSFlWCg2/YvEfaXfQe8oe X-Received: by 2002:a05:6402:318f:: with SMTP id di15mr42726706edb.237.1609168579085; Mon, 28 Dec 2020 07:16:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168579; cv=none; d=google.com; s=arc-20160816; b=IhIRrlXPok6IbiXTohW7lXgZgAAgyp7NzQ27yNwPVH69WS6Qx3sBBDaLl6PlgIZhMS SU5YTHCFa5liQ7gvNoV4SnlItNfOKrxfF3Q7eIF5Vv7G1BChy/a/d6wPHMDOTeOoI1Do aMjvB0oYv+p9JMsgpgNLBcl8wvoJV8jGWL2+hbWAeSdDSyb05hgXyqUAtsuj/JOBhIDN P+C3qB45itVa7tqtuAOkDYk23eKPuCq4M6LZniAg/nd7VwNosHj4NpZgYV2d/4eVbVL9 J2PdkguTwnPwh8UuS5Sv9pgUnvQ6rq3lE46prX7n/iJdKVdnRTq+ejc/dz5vb3WxAc8A wP9g== 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=MBxZ0VPZSVQDU5Q8shTJ1NnGascCOSnCtuDmlPVtGdg=; b=Ss209bdwktiOyGTC4Hapz0PSkNXz5R/AeraEgXNFiySasu/wpyTe2cwmiW/lvt0FfE xzclSgZvjvYlCtaxP2fBpEWiQeD0Gn6fCoM4KbZUrs/ZafaCaYgNLqOBcYacZor7/i0S A6acAkitk6AYb0qyLhKJcpDq8YboKDt5OAEaJpRRuNyG3WCRHoVYXhw/3SSwgqeGUVZN bqiVJyTUC2pn6+pl89S7YXCzhem4mLxdLVMYaV+bamEfYyjYoXqxS/wJMRpJTXFV0VXx r2oecAxK3jTdHWDocC1msbHoviX4tFM/dK1tn3eTgDFa3SRkppqgVCrwAiFVGQPbYB6u A+6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mt4yfhoa; 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 bs15si13405752ejb.717.2020.12.28.07.15.56; Mon, 28 Dec 2020 07:16:19 -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=mt4yfhoa; 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 S2438223AbgL1OGt (ORCPT + 99 others); Mon, 28 Dec 2020 09:06:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:40644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437778AbgL1OGH (ORCPT ); Mon, 28 Dec 2020 09:06:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DADB8207A9; Mon, 28 Dec 2020 14:05:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164327; bh=EFSrXRJHXxjY25ZaLMw//IpUwr/ll6IrNBvYwxkOp0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mt4yfhoaMsBbo5mj7dgpPNp6a1VbjTuzuoWq0R428fzrg1H8OCTEyM+T1BLdDdEqP nume2CEQKG1qfxytvHNebPD7NeJ9VbPYHvikj6WXW0IyRsKmc2hPMlaVSxvH0EPl2p 9uLEStJKn+FSBTcanzKIqgPH7jyPOd7AIlvyqMDM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Yang Yingliang , Thomas Zimmermann , Sasha Levin Subject: [PATCH 5.10 140/717] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe() Date: Mon, 28 Dec 2020 13:42:18 +0100 Message-Id: <20201228125027.666508994@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Yang Yingliang [ Upstream commit 723ae803218da993143387bf966042eccefac077 ] Return -ENOMEM when allocating refill memory failed. Fixes: 71e8831f6407 ("drm/omap: DMM/TILER support for OMAP4+ platform") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20201117061045.3452287-1-yangyingliang@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index 42ec51bb7b1b0..7f43172488123 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -889,6 +889,7 @@ static int omap_dmm_probe(struct platform_device *dev) &omap_dmm->refill_pa, GFP_KERNEL); if (!omap_dmm->refill_va) { dev_err(&dev->dev, "could not allocate refill memory\n"); + ret = -ENOMEM; goto fail; } -- 2.27.0