mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fix arc_read_done may try to byteswap undefined data (sparc related)
OpenSolaris onnv-revision: 10839:cf83b553a2ab Obtained from: OpenSolaris (Bug ID 6836714) Approved by: pjd, delphij (mentor) MFC after: 3 days
This commit is contained in:
parent
726db0af89
commit
bc5752e811
1 changed files with 1 additions and 1 deletions
|
|
@ -2687,7 +2687,7 @@ arc_read_done(zio_t *zio)
|
|||
/* byteswap if necessary */
|
||||
callback_list = hdr->b_acb;
|
||||
ASSERT(callback_list != NULL);
|
||||
if (BP_SHOULD_BYTESWAP(zio->io_bp)) {
|
||||
if (BP_SHOULD_BYTESWAP(zio->io_bp) && zio->io_error == 0) {
|
||||
arc_byteswap_func_t *func = BP_GET_LEVEL(zio->io_bp) > 0 ?
|
||||
byteswap_uint64_array :
|
||||
dmu_ot[BP_GET_TYPE(zio->io_bp)].ot_byteswap;
|
||||
|
|
|
|||
Loading…
Reference in a new issue