block: add a bi_error field to struct bio
[cascardo/linux.git] / drivers / md / dm-flakey.c
index b257e46..0448124 100644 (file)
@@ -296,7 +296,7 @@ static int flakey_map(struct dm_target *ti, struct bio *bio)
                 * Drop writes?
                 */
                if (test_bit(DROP_WRITES, &fc->flags)) {
-                       bio_endio(bio, 0);
+                       bio_endio(bio);
                        return DM_MAPIO_SUBMITTED;
                }