From a1a4ab33cd75f0bc1d5e71989b01ba3446c998ae Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 6 Jan 2023 21:11:44 +0100 Subject: kernel: basic procfs --- src/kernel/vfs/request.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/vfs/request.c') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index a129f2e..2288de5 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -155,7 +155,9 @@ void vfs_backend_refdown(struct vfs_backend *b) { assert(b); assert(b->refcount > 0); if (--(b->refcount) > 0) return; - assert(!b->queue); + if (!b->is_user && b->kern.cleanup) { + b->kern.cleanup(b); + } kfree(b); } -- cgit v1.2.3