Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123310
b: refs/heads/master
c: f735b5e
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Dec 29, 2008
1 parent f26a53b commit bcf3b35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: a0ea8622918019ed76c0b85f5d0247809ba05a7c
refs/heads/master: f735b5eeb9fcbb001e0cf2a5296b19c4bbaec55f
9 changes: 7 additions & 2 deletions trunk/mm/bounce.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,13 @@ static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig,
/*
* irk, bounce it
*/
if (!bio)
bio = bio_alloc(GFP_NOIO, (*bio_orig)->bi_vcnt);
if (!bio) {
unsigned int cnt = (*bio_orig)->bi_vcnt;

bio = bio_alloc(GFP_NOIO, cnt);
memset(bio->bi_io_vec, 0, cnt * sizeof(struct bio_vec));
}


to = bio->bi_io_vec + i;

Expand Down

0 comments on commit bcf3b35

Please sign in to comment.