Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759537AbcLBKXF (ORCPT ); Fri, 2 Dec 2016 05:23:05 -0500 Received: from mga03.intel.com ([134.134.136.65]:48358 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754978AbcLBKXD (ORCPT ); Fri, 2 Dec 2016 05:23:03 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,729,1477983600"; d="scan'208";a="12600916" Date: Fri, 2 Dec 2016 16:02:44 +0530 From: Vinod Koul To: Pan Bian Cc: Dan Williams , Dave Jiang , Julia Lawall , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] dma: ioat: fix improper return value on failures Message-ID: <20161202103244.GN6408@localhost> References: <1480577529-30981-1-git-send-email-bianpan2016@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1480577529-30981-1-git-send-email-bianpan2016@163.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 342 Lines: 10 On Thu, Dec 01, 2016 at 03:32:09PM +0800, Pan Bian wrote: > Fix bug https://bugzilla.kernel.org/show_bug.cgi?id=188601. This patch > is based on "0001-dma-ioat-set-error-code-on-failures.patch". In this > patch, assign error code -ENOMEM to return variable err as long as the > call to dma_mapping_error() fails. Same here too.. -- ~Vinod