Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9174724pxu; Mon, 28 Dec 2020 08:26:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0uj1Fb3eM/jvAaUNnTBnqBuYyEme/rTMkr0iMuLtUjz99KiKAAs9aFsTaA7NtuTWIfLsJ X-Received: by 2002:a50:f392:: with SMTP id g18mr43040113edm.306.1609172763421; Mon, 28 Dec 2020 08:26:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172763; cv=none; d=google.com; s=arc-20160816; b=ttX14RzRDKhLODx0b0tYu1j4W8bXeE7vFVctqtraAvB5pyxgG6mdIIlmuJv1edrgvM ShKNHBysIzk01Krm/5YyuBYsXzkjw2wuRKuL5vDzDhW1wo543xHQytvDAPqcYan0t8fm bRNVuZlKMn3e8BKGfaf31zr8kj908cORkezV3uCvgGWPNZqcF6vkNWWek/3v83o4MB9r Q27gOtZw+uOkkJRyLhcIvJBToZ/U/9vbAOvPVkGA5KIakwAqIy2U+IGL7Zz1z3UYWq5k cQ0O5+RoYweGk1wVwqtghJgbvmpSBmfaREkHLcB3SU8MI55jzvDfPF/PxpqKswocNPkv V9QA== 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=t69SsVx8Zn4t1lDgFm6yDYnmpmBLK2LrontqDLlF9JU=; b=woqoOrhE0wCNCVzSU9/gqIePnEwQ7SzoZUIBgFI5Gv3BuvH9aN8SJsBKtHx5wb8DIb VAIptCY6hlwlSi1v0JfAt6n7Ct3aCEjuPwfKQeS6QuxWmZJO+hZXQ5GMsS4LOvQ+BSwK kiem6vQY60AKwZV7k+BEdLLn7VYAnmMhvyrG6zafqLF+m+nYy6gm2xBdrdBtaUdjkBjj wHCv6oq0rKji1KeQr1ujAgaxW9l7NXpWeM1aSyWxetVKPCxCQrdic2/LvVlvNEHVRojf ybpHKGnBWRYxr8ShJaHHmSr2a0xR24g5q9u+vAS1JTE9bEgwI2NOvnR/ZafjzIIX1TYs Y7vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qncih+fZ; 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 v16si18970784eja.188.2020.12.28.08.25.40; Mon, 28 Dec 2020 08:26:03 -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=Qncih+fZ; 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 S2633343AbgL1QWh (ORCPT + 99 others); Mon, 28 Dec 2020 11:22:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:40082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729404AbgL1NMI (ORCPT ); Mon, 28 Dec 2020 08:12:08 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D02D208D5; Mon, 28 Dec 2020 13:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161087; bh=bkRVZh4L/0zl8Z1PpqZxV5SMXxYeLyL0llq0dAeRNJo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qncih+fZvG6NLwS7QkmFGcB36b6B7Axw7OuqoCsXhe14dy/rAmaGgayWbhXzMY12l XJpGTBJre820sgYgJtKdvinRLyLvTk19WKkdUtYyO+ACSKXwnL1t635bWYbwdmryEw E9hp4hBtQa+sD1cAy9RGSG+sVzjwLC11N1xC2rbM= 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.14 096/242] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe() Date: Mon, 28 Dec 2020 13:48:21 +0100 Message-Id: <20201228124909.413258806@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 32901c6fe3dfc..6d0c0405e736d 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -751,6 +751,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