Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2457612imm; Mon, 28 May 2018 08:26:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqVJ6SPLMTJ48A9aTKax/Kf/Hc3xXddlPcrS7j/WZ6lB3VHwLAk44isfonm8GIZnCHWQJGp X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr13578151plk.283.1527521169812; Mon, 28 May 2018 08:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527521169; cv=none; d=google.com; s=arc-20160816; b=hrFygKxBkvrn6LxJY1JdTMWsE03SAy4wKr+043apZ1cgWCR5e2/+UtOz7MGJqqNmcb 9Atca7JeDz/ALbO5ouwEBq2ow6N5RhGH2EBjNRbDDiq1aT0lWKDyNPCZGI7h+iVPjmrr LDuqVdGIQg0CFsU5IMY8XR8oeBtu4s9N7xEBWz0WJnUFG1S2YzFsfgNDXQ5ARlj2Y/r0 DBrJcVnazYvhkySFDs3IqTJohG79ed4ZMur4WjNk9Ur05jAbVb56ZCVlIRBAYFUVvB1a G7OUeR2+J4Ko1YluwPW6x8QnOeKYTwn9dN80ogEF5V6ewXB/V5BXjG5SGb1rSqoU/fdt pqjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=ZDG8Z+nHzkZ48IkWWYh/KAPeshu9g+4F2iQ+lpjjKMA=; b=iKpH391RLFhYwna0Hjldou6DyA+O5QmYTpd1RpSHUYH3DhXjgH3yT18xZUsdfDbBx6 F4JfkBAImVygUZg3eHavZiii95JbzxQW7wajdw9iCM+I9Vh97Yz2DL5b6XZy3eT7ttQr rhd/opTCzhrjWRZgNU2TydsVLVhczzNoCo/GUJJaFPJfuB7oSCyrIQnXVjRUpYWm6xlb YGZkl9G1tuwZjq31LOkwlrayEWnu2TcO7SJkFhXxtB+tCa8FV0+lVAFCW2d4QgKtDk2s yjTyjZA5pALhFPQS7zfCXjvooAPREgDhtnsa/UKngDpImS9AVOrRQEFODGSE889gV/L4 x0iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si10429785pll.142.2018.05.28.08.25.55; Mon, 28 May 2018 08:26:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425151AbeE1PYL (ORCPT + 99 others); Mon, 28 May 2018 11:24:11 -0400 Received: from smtprelay0216.hostedemail.com ([216.40.44.216]:35321 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1033256AbeE1PYH (ORCPT ); Mon, 28 May 2018 11:24:07 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 170C0182CED5B; Mon, 28 May 2018 15:24:06 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:69:355:379:541:599:800:960:973:988:989:1042:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2691:2828:2899:2911:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3870:3871:3872:4321:4425:5007:6119:7576:7688:7903:10004:10400:10450:10455:10471:10848:11026:11232:11473:11657:11658:11914:12043:12296:12438:12555:12740:12760:12895:13069:13095:13161:13229:13255:13311:13357:13439:14181:14659:14721:19904:19999:21080:21212:21433:21451:21627:30054:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:21,LUA_SUMMARY:none X-HE-Tag: fan42_687801c45a46 X-Filterd-Recvd-Size: 2808 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Mon, 28 May 2018 15:24:04 +0000 (UTC) Message-ID: <41d4c55b6e9ad7f68bdcbae6c3f8064938d58e68.camel@perches.com> Subject: Re: [PATCH 4.14 102/496] drm/exynos: g2d: Delete an error message for a failed memory allocation in two functions From: Joe Perches To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Markus Elfring , Inki Dae , Sasha Levin Date: Mon, 28 May 2018 08:24:03 -0700 In-Reply-To: <20180528100324.148603249@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> <20180528100324.148603249@linuxfoundation.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-05-28 at 11:58 +0200, Greg Kroah-Hartman wrote: > 4.14-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Markus Elfring I still wonder why any Markus Elfring patch should be applied to a stable branch. The only reason I could believe is it would make forward porting of an actually useful fix easier. Does this? > [ Upstream commit 6f0a60298bbbea43ab5e3955913ab19c153076f3 ] > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > Signed-off-by: Inki Dae > Signed-off-by: Sasha Levin > Signed-off-by: Greg Kroah-Hartman > --- > drivers/gpu/drm/exynos/exynos_drm_g2d.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c > +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c > @@ -286,7 +286,6 @@ static int g2d_init_cmdlist(struct g2d_d > > node = kcalloc(G2D_CMDLIST_NUM, sizeof(*node), GFP_KERNEL); > if (!node) { > - dev_err(dev, "failed to allocate memory\n"); > ret = -ENOMEM; > goto err; > } > @@ -1358,10 +1357,9 @@ int exynos_g2d_exec_ioctl(struct drm_dev > return -EFAULT; > > runqueue_node = kmem_cache_alloc(g2d->runqueue_slab, GFP_KERNEL); > - if (!runqueue_node) { > - dev_err(dev, "failed to allocate memory\n"); > + if (!runqueue_node) > return -ENOMEM; > - } > + > run_cmdlist = &runqueue_node->run_cmdlist; > event_list = &runqueue_node->event_list; > INIT_LIST_HEAD(run_cmdlist); > >