diff options
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index d1b04b0e99cf..9455aada1399 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -414,7 +414,7 @@ extern void bio_endio(struct bio *); | |||
414 | 414 | ||
415 | static inline void bio_io_error(struct bio *bio) | 415 | static inline void bio_io_error(struct bio *bio) |
416 | { | 416 | { |
417 | bio->bi_error = -EIO; | 417 | bio->bi_status = BLK_STS_IOERR; |
418 | bio_endio(bio); | 418 | bio_endio(bio); |
419 | } | 419 | } |
420 | 420 | ||