aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/axonram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c
index 4d3ba63bba79..5eaf3e3f4b8b 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)
117 transfered = 0; 117 transfered = 0;
118 bio_for_each_segment(vec, bio, idx) { 118 bio_for_each_segment(vec, bio, idx) {
119 if (unlikely(phys_mem + vec->bv_len > phys_end)) { 119 if (unlikely(phys_mem + vec->bv_len > phys_end)) {
120 bio_io_error(bio, bio->bi_size); 120 bio_io_error(bio);
121 rc = -ERANGE; 121 rc = -ERANGE;
122 break; 122 break;
123 } 123 }
@@ -131,7 +131,7 @@ axon_ram_make_request(struct request_queue *queue, struct bio *bio)
131 phys_mem += vec->bv_len; 131 phys_mem += vec->bv_len;
132 transfered += vec->bv_len; 132 transfered += vec->bv_len;
133 } 133 }
134 bio_endio(bio, transfered, 0); 134 bio_endio(bio, 0);
135 135
136 return rc; 136 return rc;
137} 137}