]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
unionfs: replace zero-length read check with KASSERT
authorJason A. Harmening <jah@FreeBSD.org>
Thu, 28 Oct 2021 05:31:52 +0000 (22:31 -0700)
committerJason A. Harmening <jah@FreeBSD.org>
Sat, 6 Nov 2021 14:08:34 +0000 (07:08 -0700)
commitfb273fe70f8be66bb946c5a2ea1e53042bbada48
treebe605fc60d2f9bd368a04530667949452743775c
parent66191a76ace56af6603b343ad2e9a003e0589d70
unionfs: replace zero-length read check with KASSERT

The lower FS VOP_READDIR() shouldn't return an empty read without
setting EOF; don't try to handle this case only for non-DIAGNOSTIC
builds.

Noted by: kib
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D32629
sys/fs/unionfs/union_subr.c