Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9183256pxu; Mon, 28 Dec 2020 08:39:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8xoa5oKnDbe4G7QMqmfnv3nCcNM9o0LCY5uDjvDQ9DPwa6gwvzBoTUr+QqfsnlzJKfJN4 X-Received: by 2002:a50:9ee6:: with SMTP id a93mr43368454edf.174.1609173577255; Mon, 28 Dec 2020 08:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609173577; cv=none; d=google.com; s=arc-20160816; b=lblM3VBNFGs2rW16lO/5Fu/Z/085/VuEGA2yQksLX8ppyj/AJEdfs77HWo/YI4mQBM nFw4/UFa/qnNBjs7Rn+X6rEwhTQf1l6Z+LL+Y0Z0g24/bDk7aowpU648htQASqUPqSns drfP93uMz4QuQVHkxiyugl3LXx/EBZZXmlDmwD3jAVzIe7VkPHm7AIJrlbj9Klu0Px9q GGO7Qp1yZrI2PHNv7MLGUGeO+NKtg5K8W1NiT3MVb3Hts0dCtO0nFVmsgH3eyoeXT5Ik fUkNs/TcuV7JPaAxVTOLoea4Al6shynAGvk4V99R0U0Wlg4I9LMzGfHDQieZ6kDD+2al yLgA== 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=WpBMiaChqlP1E5r3SzC/AC5BXduCytwLZS6ugY4w+k4=; b=wAOzWDcfps7qW9lOp4REz91unasmyPQ24YzXQ0TW5hC4NslrToZrwGrRMGAUCxhk7A jD9J1dIKe5tQwi0Fbk5CJAgpfwSDr0qutVFWWKVqd+CQzD0igBLroqRJpjFJFVOgJSAB UJPMIa6YxDGQJhQpHmo9T88sBrjcYJyhnlWnNtDkA9Wp8ohl6TIkYnZioFrV83/ioAk/ EgV9WqUiLecpcbAX4Cs5ZYDeSR+snH8sQv1FfD69WxC5TDAO7dB0JBvss+tFamXW1k93 GHHCg6vKWjucVy4djIXxWg92X0MJIBlBAyfwygklB4EXOfpRSi5azvOMm2JR+jsniKH7 UwGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hoU3KFBg; 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 n8si20215530edy.54.2020.12.28.08.39.12; Mon, 28 Dec 2020 08:39:37 -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=hoU3KFBg; 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 S2389465AbgL1Qf2 (ORCPT + 99 others); Mon, 28 Dec 2020 11:35:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:58302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729966AbgL1NCG (ORCPT ); Mon, 28 Dec 2020 08:02:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E4410224D2; Mon, 28 Dec 2020 13:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160485; bh=9/8GsZg8kvKV8XE3LxsYiNOmganx7LZuZdKDGykeqgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hoU3KFBgOoAjjerE809aM6oGDa7cWqwUUQvBWtX238NAjb53fTW2QY37KMfh0eTtF AbTN6BACkmqxnZUoqdHaw/YTkPaYN/17MkO4xxc4gVVdmeP/cr/aAVPN0F+9sNKKml CJ12HUqiW52r1ui0BCMlvP8670F3T870mtKTXygA= 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.9 068/175] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe() Date: Mon, 28 Dec 2020 13:48:41 +0100 Message-Id: <20201228124856.545358160@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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 6a0b25e0823fa..6b64a1e07c017 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -747,6 +747,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