diff options
Diffstat (limited to 'drivers/block/z2ram.c')
-rw-r--r-- | drivers/block/z2ram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index 80754cdd3119..b66ad58a3c38 100644 --- a/drivers/block/z2ram.c +++ b/drivers/block/z2ram.c | |||
@@ -77,7 +77,7 @@ static void do_z2_request(struct request_queue *q) | |||
77 | if (start + len > z2ram_size) { | 77 | if (start + len > z2ram_size) { |
78 | printk( KERN_ERR DEVICE_NAME ": bad access: block=%lu, count=%u\n", | 78 | printk( KERN_ERR DEVICE_NAME ": bad access: block=%lu, count=%u\n", |
79 | req->sector, req->current_nr_sectors); | 79 | req->sector, req->current_nr_sectors); |
80 | end_request(req, 0); | 80 | __blk_end_request_cur(req, -EIO); |
81 | continue; | 81 | continue; |
82 | } | 82 | } |
83 | while (len) { | 83 | while (len) { |
@@ -93,7 +93,7 @@ static void do_z2_request(struct request_queue *q) | |||
93 | start += size; | 93 | start += size; |
94 | len -= size; | 94 | len -= size; |
95 | } | 95 | } |
96 | end_request(req, 1); | 96 | __blk_end_request_cur(req, 0); |
97 | } | 97 | } |
98 | } | 98 | } |
99 | 99 | ||