Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9444593pxu; Mon, 28 Dec 2020 16:48:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTePsvBtdkMITpNi9JFc1HJ3RGwoQYDERfAtOjrcbyxkrSfCo2jBxwt+FX1J9hjR9v4Ue8 X-Received: by 2002:a17:906:c00c:: with SMTP id e12mr33134844ejz.103.1609202882260; Mon, 28 Dec 2020 16:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609202882; cv=none; d=google.com; s=arc-20160816; b=cdqrTczDns+wk5lNLzRcv/xDLxoSIz8uvljY4lH0PBKoww5ljqthsUVCaWWTimOquZ EmILOQhsVgaiqxdmJGZgZIehBGoArd+rrbj2lK0C/WukvXph52V/p8SHiIu/D2oyPpl9 cJYFYgW4VYMBWGfs6LAP+V5ZBSyZpMBUE1XXF8+5frj2FaiTDS0LvcOn64L0mMO4FNAD C52UezAFtBYMbWPHCeyWHUiGiyDiE2qbOVQCtwzlrWXcqCH+47tJPwmF98wFJv3c24Rl 7E4kk5XZ7h/NisjHeKFwbBeqFViKpyCZlAPSbQ80fU01oRGnCduhl3L0yJUgypbMWrK6 WG0g== 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=zWXx5wH3t/SWiB49NnYsAZ7p9nPy0ei6+kaLnIYa/IQ=; b=SEMoBaZkW5Lc3yqQ64+QCJeTVauQU2tcPEMJEwwdQ5wjbSN/9xuv/UtoFCQYfeGs9U A8I6M8sXyNINsb2lPkApZgd9uu80IgAMDkm1MbIbmzBfHBzhXzvdXG8HEkLVHaDmbaMW aDyiSq6KInA0s9GY67g2DNxP1T0T1GYKnMrM1mHsR+A62NWsAo2tIa9H8N4kKpCdh5sQ +992rgRs6xONhCpEVSoxC8JP+NhXAwvkxKhaMPISdVpKEantwBtg7keQ7Iuoqq0zwJlY g/7FmNxcsLyyrCPQ1h4o2Du6wYoN00SEGGY+6Mh5Gt264rvcYD6qe+0K+eo+pVPwnLih xrsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pZbmPZpx; 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 bs24si21288042edb.519.2020.12.28.16.47.40; Mon, 28 Dec 2020 16:48:02 -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=pZbmPZpx; 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 S2393008AbgL1QFz (ORCPT + 99 others); Mon, 28 Dec 2020 11:05:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:55666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389574AbgL1N05 (ORCPT ); Mon, 28 Dec 2020 08:26:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 60C4B208D5; Mon, 28 Dec 2020 13:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161977; bh=c4MEjh3aajCgt0ELuYGrCFGbA9KmeIe2hN9K9DXQABg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pZbmPZpxfhOv9nqW/foJYg3A2qjqlF1AHK8XsjgOha0Z1R5lZThCrQQWD7BCnfqe1 16XNh2E84ND/ffekeI2uwQxOwn8MPK7iXnmlswZIJ3T0Z3+fK+wvaRKFr9JRC8rOnP gpSHCkNMJ6YitMVpTzoYA/XgoJ4YjvdZtCDOvoL8= 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 4.19 146/346] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe() Date: Mon, 28 Dec 2020 13:47:45 +0100 Message-Id: <20201228124926.846886925@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124919.745526410@linuxfoundation.org> References: <20201228124919.745526410@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 e884183c018ac..cb5ce73f72694 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -763,6 +763,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