mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-27 04:30:35 +03:00
Reoder config refcount acquire in kernel module
That's like an impossible occurrence but why not :)
This commit is contained in:
@@ -483,8 +483,8 @@ static NF_CALLBACK(ykb_nf_hook, skb) {
|
|||||||
uint8_t *data_buf = NULL;
|
uint8_t *data_buf = NULL;
|
||||||
int nf_verdict = NF_ACCEPT;
|
int nf_verdict = NF_ACCEPT;
|
||||||
|
|
||||||
|
kref_get(&cur_config->refcount);
|
||||||
struct config_t *config = cur_config;
|
struct config_t *config = cur_config;
|
||||||
kref_get(&config->refcount);
|
|
||||||
|
|
||||||
++global_stats.all_packet_counter;
|
++global_stats.all_packet_counter;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user