Reoder config refcount acquire in kernel module

That's like an impossible occurrence but why not :)
This commit is contained in:
Vadim Vetrov
2025-03-29 18:09:47 +03:00
parent 9e8a2aab36
commit 6549d0075f

View File

@@ -483,8 +483,8 @@ static NF_CALLBACK(ykb_nf_hook, skb) {
uint8_t *data_buf = NULL;
int nf_verdict = NF_ACCEPT;
kref_get(&cur_config->refcount);
struct config_t *config = cur_config;
kref_get(&config->refcount);
++global_stats.all_packet_counter;