From: Al Viro Date: Fri, 12 Oct 2007 06:00:19 +0000 (+0100) Subject: missed bio_endio() in axonram X-Git-Tag: v2.6.24-rc1~1449 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d81fec0f97cce4aea36a89340af247523c1263a0;p=linux-2.6-omap-h63xx.git missed bio_endio() in axonram Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index 4d3ba63bba7..5eaf3e3f4b8 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; }