diff options
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r-- | drivers/block/floppy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index a8cfa011c284..eeb4be8d000b 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -2255,9 +2255,9 @@ static void request_done(int uptodate) | |||
2255 | DRS->maxtrack = 1; | 2255 | DRS->maxtrack = 1; |
2256 | 2256 | ||
2257 | /* unlock chained buffers */ | 2257 | /* unlock chained buffers */ |
2258 | spin_lock_irqsave(q->queue_lock, flags); | 2258 | spin_lock_irqsave(&q->queue_lock, flags); |
2259 | floppy_end_request(req, 0); | 2259 | floppy_end_request(req, 0); |
2260 | spin_unlock_irqrestore(q->queue_lock, flags); | 2260 | spin_unlock_irqrestore(&q->queue_lock, flags); |
2261 | } else { | 2261 | } else { |
2262 | if (rq_data_dir(req) == WRITE) { | 2262 | if (rq_data_dir(req) == WRITE) { |
2263 | /* record write error information */ | 2263 | /* record write error information */ |
@@ -2269,9 +2269,9 @@ static void request_done(int uptodate) | |||
2269 | DRWE->last_error_sector = blk_rq_pos(req); | 2269 | DRWE->last_error_sector = blk_rq_pos(req); |
2270 | DRWE->last_error_generation = DRS->generation; | 2270 | DRWE->last_error_generation = DRS->generation; |
2271 | } | 2271 | } |
2272 | spin_lock_irqsave(q->queue_lock, flags); | 2272 | spin_lock_irqsave(&q->queue_lock, flags); |
2273 | floppy_end_request(req, BLK_STS_IOERR); | 2273 | floppy_end_request(req, BLK_STS_IOERR); |
2274 | spin_unlock_irqrestore(q->queue_lock, flags); | 2274 | spin_unlock_irqrestore(&q->queue_lock, flags); |
2275 | } | 2275 | } |
2276 | } | 2276 | } |
2277 | 2277 | ||