Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146349
b: refs/heads/master
c: 2ecf0a5
h: refs/heads/master
i:
  146347: 0cd9b9a
v: v3
  • Loading branch information
Tejun Heo committed Apr 21, 2009
1 parent 79862fe commit 6af78a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c316bb57ad4e9f0f3de2d7ef1ae85530c2a7e69
refs/heads/master: 2ecf0a57c60dcb588f310d94412118e15c510532
20 changes: 4 additions & 16 deletions trunk/drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,23 +510,11 @@ ide_startstop_t ide_dma_timeout_retry(ide_drive_t *drive, int error)
/*
* un-busy drive etc and make sure request is sane
*/

rq = hwif->rq;
if (!rq)
goto out;

hwif->rq = NULL;

rq->errors = 0;

if (!rq->bio)
goto out;

rq->sector = rq->bio->bi_sector;
rq->current_nr_sectors = bio_iovec(rq->bio)->bv_len >> 9;
rq->hard_cur_sectors = rq->current_nr_sectors;
rq->buffer = bio_data(rq->bio);
out:
if (rq) {
hwif->rq = NULL;
rq->errors = 0;
}
return ret;
}

Expand Down

0 comments on commit 6af78a3

Please sign in to comment.