git: 58b2bd33aff7 - main - namei: clear internal flags in NDREINIT()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 May 2025 14:23:02 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=58b2bd33aff71c0268d99d63e9c83f6544d3beb3
commit 58b2bd33aff71c0268d99d63e9c83f6544d3beb3
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-05-28 21:51:42 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-05-29 14:22:49 +0000
namei: clear internal flags in NDREINIT()
same as it is done for NDRESTART()
Fixes: e05e33041c252
Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
---
sys/sys/namei.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index 4a16ec923bd8..eda3cc9b6f24 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -266,6 +266,7 @@ do { \
filecaps_free(&_ndp->ni_filecaps); \
_ndp->ni_resflags = 0; \
_ndp->ni_startdir = NULL; \
+ _ndp->ni_cnd.cn_flags &= ~NAMEI_INTERNAL_FLAGS; \
} while (0)
#define NDPREINIT(ndp) do { \