mirror_zfs/module
Brian Behlendorf 0fd9a28de8 Fix QAT allocation failure return value
When qat_compress() fails to allocate the required contiguous memory
it mistakenly returns success.  This prevents the fallback software
compression from taking over and (un)compressing the block.

Resolve the issue by correctly setting the local 'status' variable
on all exit paths.  Furthermore, initialize it to CPA_STATUS_FAIL
to ensure qat_compress() always fails safe to guard against any
similar bugs in the future.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9784
Closes #9788
2020-01-22 13:49:07 -08:00
..
avl Fix typos in module/ 2020-01-22 13:48:59 -08:00
icp cppcheck: (error) Uninitialized variable 2020-01-22 13:49:06 -08:00
lua cppcheck: (error) Address of local auto-variable assigned 2020-01-22 13:49:06 -08:00
nvpair cppcheck: (warning) Possible null pointer dereference: nvh 2020-01-22 13:49:06 -08:00
spl Fix zfs-0.8.3 'make lint' warnings 2020-01-22 13:49:07 -08:00
unicode Update build system and packaging 2018-05-29 16:00:33 -07:00
zcommon Increase allowed 'special_small_blocks' maximum value 2020-01-22 13:49:05 -08:00
zfs Fix QAT allocation failure return value 2020-01-22 13:49:07 -08:00
.gitignore Adapt gitignore for modules 2020-01-22 13:49:05 -08:00
Makefile.in module/Makefile.in: don't run xargs if empty 2020-01-22 13:49:02 -08:00