]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix positive ABD size assertion in abd_verify().
authorAlexander Motin <mav@FreeBSD.org>
Wed, 26 Apr 2023 16:20:43 +0000 (12:20 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 16:20:43 +0000 (09:20 -0700)
commitbba7cbf0a481ab16f9a9a4874b7dbd5682e4d3a4
tree9d8e0d4b65645e49aa005526945797aa33a6040c
parente37a89d5d0ba07da09998de6701a6c0ec43903b7
Fix positive ABD size assertion in abd_verify().

Gang ABDs without childred are legal, and they do have zero size.
For other ABD types zero size doesn't have much sense and likely
not working correctly now.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #14795
module/zfs/abd.c