Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3411872ybl; Sun, 1 Sep 2019 12:29:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi1/pfKyiKYTOeIlCnhEk6Zrtnk8oWkyIleCZlcEZlY02+FGuV9TIFsErrNN6fhXTBC2iT X-Received: by 2002:a63:4823:: with SMTP id v35mr22201803pga.138.1567366180559; Sun, 01 Sep 2019 12:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567366180; cv=none; d=google.com; s=arc-20160816; b=auEjkXOuv7JTKiQfcR7jp3QdbCewVB9kBm7UeVfAvL2Xnh0KLlG716P+S0zakL54SI /NFjIvNit7RXvIwZHb8u8OR+Y+TzJUIJ/eL+3r4IPVfkPh6F2+CZNJiJ0AndB0rInxVC I8m+vcm9WaE/rfqlGJJHGoLIVN8djiphoiPN9MDZKD2xJjsEMz5KcWVhlfZdI0N9aNvd xNpuNGir/2ca5fHgjUhtAegi8XKg1RrawxjrfEszo6LlSo6ZTYtTXuBQHLMkhXzPOunA aDjtOhozq4J6on59Qp9DIE5mNJOWRwPi2h6desVmYBksb01oGZT+hoajHGOgR+1ZtzFu 9y4A== 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:from:subject:cc:to:message-id:date; bh=fSD3T6rkJXntBuz4JpSd2ysNu5rpwZ3XNyWsNjq924k=; b=Sbr/mKROpdK7fiaM6pAj72+q9ykiJR6tROZ4mC0ztl4/APKq4rT66qyJJEq9YE6qgA 9Ctm/1cuxWpSlP8ay3oVMOXyxA+87DhqoE1/jTY3fixPPPY8EO5I3Po4/ZZfH/20XC5S B4uhgy5Ma8UtkWhjldx1RdrJVzaA3F4v1J0kw2IsQMsBQVWa1YL771zvfi/vnAvKj0rX 07XDgJbM20mvEwXcuBcoUDbVWr2o8fy3QjUxFrCGdEJjTRMvFoGjEl2MrtL5NZBUgsSa kX0cqOeDjLZgy203fnKzQW9DAs5gfIROb7LFdUjyXsBz/SEkea5ppG+vOdZ0I97VWqQq XIYw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si10181703pls.36.2019.09.01.12.29.14; Sun, 01 Sep 2019 12:29:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729210AbfIATLN (ORCPT + 99 others); Sun, 1 Sep 2019 15:11:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59664 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728930AbfIATLN (ORCPT ); Sun, 1 Sep 2019 15:11:13 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD4818535D; Sun, 1 Sep 2019 19:11:12 +0000 (UTC) Received: from localhost (ovpn-112-7.rdu2.redhat.com [10.10.112.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E6A15D9D6; Sun, 1 Sep 2019 19:11:10 +0000 (UTC) Date: Sun, 01 Sep 2019 12:11:09 -0700 (PDT) Message-Id: <20190901.121109.1164811815017267709.davem@redhat.com> To: christophe.jaillet@wanadoo.fr Cc: yuehaibing@huawei.com, tglx@linutronix.de, gregkh@linuxfoundation.org, tbogendoerfer@suse.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] net: seeq: Fix the function used to release some memory in an error handling path From: David Miller In-Reply-To: <20190831071751.1479-1-christophe.jaillet@wanadoo.fr> References: <20190831071751.1479-1-christophe.jaillet@wanadoo.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sun, 01 Sep 2019 19:11:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET Date: Sat, 31 Aug 2019 09:17:51 +0200 > In commit 99cd149efe82 ("sgiseeq: replace use of dma_cache_wback_inv"), > a call to 'get_zeroed_page()' has been turned into a call to > 'dma_alloc_coherent()'. Only the remove function has been updated to turn > the corresponding 'free_page()' into 'dma_free_attrs()'. > The error hndling path of the probe function has not been updated. > > Fix it now. > > Rename the corresponding label to something more in line. > > Fixes: 99cd149efe82 ("sgiseeq: replace use of dma_cache_wback_inv") > Signed-off-by: Christophe JAILLET Applied. > If 'dma_alloc_coherent()' fails, maybe the message in printk could be > improved. The comment above may also not be relevant. Memory allocation failures already give a stack backtrack down deep in the memory allocators, therefore printing messages at allocation call sites are veboten.