passthrough_ll: fix fd leaks in lo_destroy() (#929)
authorlegezywzh <94814730+legezywzh@users.noreply.github.com>
Sat, 20 Apr 2024 11:40:16 +0000 (19:40 +0800)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2024 11:40:16 +0000 (13:40 +0200)
commit285da329ea946255d727f7340944d8a555eba850
tree350c496d61f790c77b04c36173de506f4b47a533
parent73cd124d0408649ad20abbdee43fcc723ac2acf2
passthrough_ll: fix fd leaks in lo_destroy() (#929)

By virtio-fs and libfuse fuse_custom_io, passthrough_ll could be
a virtio filesystem device backend, this bug was found when doing
mount, fsstress and umount repeatedly.

Signed-off-by: Xiaoguang Wang <lege.wang@jaguarmicro.com>
Co-authored-by: Xiaoguang Wang <lege.wang@jaguarmicro.com>
example/passthrough_ll.c