Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760057AbXJLGAe (ORCPT ); Fri, 12 Oct 2007 02:00:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758739AbXJLGA1 (ORCPT ); Fri, 12 Oct 2007 02:00:27 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:48696 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758724AbXJLGA0 (ORCPT ); Fri, 12 Oct 2007 02:00:26 -0400 Date: Fri, 12 Oct 2007 07:00:19 +0100 From: Al Viro To: Linus Torvalds Cc: axboe@kernel.dk, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] missed bio_endio() in axonram Message-ID: <20071012060019.GY8181@ftp.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 991 Lines: 30 Signed-off-by: Al Viro --- diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index ab037a3..46fd9c6 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c @@ -117,7 +117,7 @@ axon_ram_make_request(struct request_queue *queue, struct bio *bio) transfered = 0; bio_for_each_segment(vec, bio, idx) { if (unlikely(phys_mem + vec->bv_len > phys_end)) { - bio_io_error(bio, bio->bi_size); + bio_io_error(bio); rc = -ERANGE; break; } @@ -131,7 +131,7 @@ axon_ram_make_request(struct request_queue *queue, struct bio *bio) phys_mem += vec->bv_len; transfered += vec->bv_len; } - bio_endio(bio, transfered, 0); + bio_endio(bio, 0); return rc; } - 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/