mirror_zfs/module/os/linux/zfs
Brian Behlendorf bc9cef11fd
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-06 11:17:53 -08:00
..
abd.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
arc_os.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
Makefile.in Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
mmp_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
policy.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
qat_compress.c Fix QAT allocation failure return value 2020-01-06 11:17:53 -08:00
qat_crypt.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
qat.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
spa_misc_os.c Refactor deadman set failmode to be cross platform 2019-12-05 12:40:45 -08:00
spa_stats.c Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
trace.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
vdev_disk.c ZTS: Fix zpool_reopen_001_pos 2019-12-09 11:09:14 -08:00
vdev_file.c Mark Linux fallocate extensions as specific to Linux 2019-11-30 15:40:22 -08:00
zfs_acl.c Relocate common quota functions to shared code 2019-12-11 12:12:08 -08:00
zfs_ctldir.c Eliminate Linux specific inode usage from common code 2019-12-11 11:53:57 -08:00
zfs_debug.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
zfs_dir.c Eliminate Linux specific inode usage from common code 2019-12-11 11:53:57 -08:00
zfs_file_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_ioctl_os.c Abstract away platform specific superblock references 2019-12-10 09:21:07 -08:00
zfs_onexit_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_sysfs.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_vfsops.c Relocate common quota functions to shared code 2019-12-11 12:12:08 -08:00
zfs_vnops.c Make zfs_replay.c work on FreeBSD 2019-12-13 07:54:10 -08:00
zfs_znode.c Make zfs_replay.c work on FreeBSD 2019-12-13 07:54:10 -08:00
zio_crypt.c Linux 4.14, 4.19, 5.0+ compat: SIMD save/restore 2019-10-24 10:17:33 -07:00
zio_os.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
zpl_ctldir.c Eliminate Linux specific inode usage from common code 2019-12-11 11:53:57 -08:00
zpl_export.c Eliminate Linux specific inode usage from common code 2019-12-11 11:53:57 -08:00
zpl_file.c Eliminate Linux specific inode usage from common code 2019-12-11 11:53:57 -08:00
zpl_inode.c Don't fail to apply umask for O_TMPFILE files 2019-12-13 15:02:23 -08:00
zpl_super.c Eliminate Linux specific inode usage from common code 2019-12-11 11:53:57 -08:00
zpl_xattr.c Eliminate Linux specific inode usage from common code 2019-12-11 11:53:57 -08:00
zvol_os.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00