fuse: avoid namei_pool leaks in several functions
authorsemarie <semarie@openbsd.org>
Sat, 2 Oct 2021 17:29:28 +0000 (17:29 +0000)
committersemarie <semarie@openbsd.org>
Sat, 2 Oct 2021 17:29:28 +0000 (17:29 +0000)
commit81b1345fda11614185c341fa7ea636dc4b494feb
tree1705d6da8338006cc06737700230d099c90cd173
parentd8c6c2e540375b8e90a10111eac2d012e7ffa75e
fuse: avoid namei_pool leaks in several functions

when calling namei(), cn_pnbuf is kept allocated when fs
implementation is setting SAVENAME flag. In such cases, it is expected
the fs implementation to also release memory when work is done.

fuse(4) didn't put back the memory to the pool. correct it.

ok mpi@
sys/miscfs/fuse/fuse_vnops.c