Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946108AbWKAFet (ORCPT ); Wed, 1 Nov 2006 00:34:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946111AbWKAFet (ORCPT ); Wed, 1 Nov 2006 00:34:49 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:65222 "EHLO sous-sol.org") by vger.kernel.org with ESMTP id S1946108AbWKAFer (ORCPT ); Wed, 1 Nov 2006 00:34:47 -0500 Message-Id: <20061101053449.177834000@sous-sol.org> References: <20061101053340.305569000@sous-sol.org> User-Agent: quilt/0.45-1 Date: Tue, 31 Oct 2006 21:33:42 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, Jens Axboe , Greg Kroah-Hartman Subject: [PATCH 02/61] splice: fix pipe_to_file() ->prepare_write() error path Content-Disposition: inline; filename=splice-fix-pipe_to_file-prepare_write-error-path.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1243 Lines: 51 -stable review patch. If anyone has any objections, please let us know. ------------------ From: Jens Axboe Don't jump to the unlock+release path, we already did that. Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman Signed-off-by: Chris Wright --- fs/splice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- linux-2.6.18.1.orig/fs/splice.c +++ linux-2.6.18.1/fs/splice.c @@ -607,7 +607,7 @@ find_page: ret = -ENOMEM; page = page_cache_alloc_cold(mapping); if (unlikely(!page)) - goto out_nomem; + goto out_ret; /* * This will also lock the page @@ -666,7 +666,7 @@ find_page: if (sd->pos + this_len > isize) vmtruncate(mapping->host, isize); - goto out; + goto out_ret; } if (buf->page != page) { @@ -698,7 +698,7 @@ find_page: out: page_cache_release(page); unlock_page(page); -out_nomem: +out_ret: return ret; } -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/