Ensure zio_bad_cksum_t is initialized
This may not strictly be needed but it does keep gcc happy. We should keep our eye on this though if the extra bcopy significantly impacts performance. It may.
This commit is contained in:
parent
8a001d8f59
commit
52bb0d8e75
|
@ -1638,8 +1638,11 @@ raidz_checksum_verify(zio_t *zio)
|
||||||
{
|
{
|
||||||
zio_bad_cksum_t zbc;
|
zio_bad_cksum_t zbc;
|
||||||
raidz_map_t *rm = zio->io_vsd;
|
raidz_map_t *rm = zio->io_vsd;
|
||||||
|
int ret;
|
||||||
|
|
||||||
int ret = zio_checksum_error(zio, &zbc);
|
bzero(&zbc, sizeof (zio_bad_cksum_t));
|
||||||
|
|
||||||
|
ret = zio_checksum_error(zio, &zbc);
|
||||||
if (ret != 0 && zbc.zbc_injected != 0)
|
if (ret != 0 && zbc.zbc_injected != 0)
|
||||||
rm->rm_ecksuminjected = 1;
|
rm->rm_ecksuminjected = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue