diff options
Diffstat (limited to 'module/zfs/zio.c')
-rw-r--r-- | module/zfs/zio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c index a8f6a928f..654c81ef9 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -389,6 +389,9 @@ zio_decompress(zio_t *zio, abd_t *data, uint64_t size) zio->io_abd, tmp, zio->io_size, size); abd_return_buf_copy(data, tmp, size); + if (zio_injection_enabled && ret == 0) + ret = zio_handle_fault_injection(zio, EINVAL); + if (ret != 0) zio->io_error = SET_ERROR(EIO); } |