Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions security/lua/kvcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ void kvcache_dict_free(struct kvcache_dict *dict)
struct kvcache_node *node, *n;
struct lua_lsm_module *module;

if (atomic_read(&dict->count) == 0)
return;

spin_lock_bh(&nodes_gc_lock);
RB_FOREACH(node, kvcache, &dict->root) {
module = node->module;
Expand Down