]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix two abd_gang_add_gang() issues.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 5 May 2023 16:17:55 +0000 (12:17 -0400)
committerGitHub <noreply@github.com>
Fri, 5 May 2023 16:17:55 +0000 (09:17 -0700)
commit190290a9ac3f2f0dd0021646f2fd787ea51b08bd
treee5230c7b51a35a3cad8d78002e2e12bc0cc2d14d
parent6fa6bb051c2b83f90dc12a64e63d1cb2b0d12c96
Fix two abd_gang_add_gang() issues.

- There is no reason to assert that added gang is not empty.  It
may be weird to add an empty gang, but it is legal.
 - When moving chain list from the added gang clear its size, or it
will trigger assertion in abd_verify() when that gang is freed.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #14816
module/zfs/abd.c