[ARM] S3C64XX: Use common watchdog reset for system reset.
[deliverable/linux.git] / mm / bounce.c
index bf0cf7c8387b8d92c93dfb18436a7f2cf424cb00..e590272fe7a8f3e40acb21059bb0082f74354f26 100644 (file)
@@ -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;
 
This page took 0.02375 seconds and 5 git commands to generate.