-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #9784 Closes #9788
- zfs-2.3.99
- zfs-2.3.0-rc4
- zfs-2.3.0-rc3
- zfs-2.3.0-rc2
- zfs-2.3.0-rc1
- zfs-2.2.99
- zfs-2.2.7
- zfs-2.2.6
- zfs-2.2.5
- zfs-2.2.4
- zfs-2.2.3
- zfs-2.2.2
- zfs-2.2.1
- zfs-2.2.0
- zfs-2.2.0-rc5
- zfs-2.2.0-rc4
- zfs-2.2.0-rc3
- zfs-2.2.0-rc2
- zfs-2.2.0-rc1
- zfs-2.1.99
- zfs-2.1.16
- zfs-2.1.15
- zfs-2.1.14
- zfs-2.1.13
- zfs-2.1.12
- zfs-2.1.11
- zfs-2.1.10
- zfs-2.1.9
- zfs-2.1.8
- zfs-2.1.7
- zfs-2.1.6
- zfs-2.1.5
- zfs-2.1.4
- zfs-2.1.3
- zfs-2.1.2
- zfs-2.1.1
- zfs-2.1.0
- zfs-2.1.0-rc8
- zfs-2.1.0-rc7
- zfs-2.1.0-rc6
- zfs-2.1.0-rc5
- zfs-2.1.0-rc4
- zfs-2.1.0-rc3
- zfs-2.1.0-rc2
- zfs-2.1.0-rc1
- zfs-2.0.7
- zfs-2.0.6
- zfs-2.0.5
- zfs-2.0.4
- zfs-2.0.3
- zfs-2.0.2
- zfs-2.0.1
- zfs-2.0.0
- zfs-2.0.0-rc7
- zfs-2.0.0-rc6
- zfs-2.0.0-rc5
- zfs-2.0.0-rc4
- zfs-2.0.0-rc3
- zfs-2.0.0-rc2
- zfs-2.0.0-rc1
1 parent
581ca28
commit bc9cef1
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters