Skip to content

Commit

Permalink
Remove irrelevant TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
itaispiegel committed Jan 28, 2024
1 parent f913f52 commit 2629bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/netfilter_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static void update_log_entry_by_matching_rule(rule_t *rule, reason_t reason) {

printk(KERN_INFO "Creating a new log entry for rule #%d\n", reason);
log_entry = kmalloc(sizeof(struct log_entry), GFP_KERNEL);
if (log_entry == NULL) { // TODO decide what to do here
if (log_entry == NULL) {
printk(KERN_WARNING
"Failed to allocate memory for log entry, so ignoring it\n");
return;
Expand Down Expand Up @@ -199,7 +199,7 @@ static void update_log_entry_by_skb(struct sk_buff *skb, reason_t reason) {
printk(KERN_INFO
"Creating a new log entry for skb without a matching rule\n");
log_entry = kmalloc(sizeof(struct log_entry), GFP_KERNEL);
if (log_entry == NULL) { // TODO decide what to do here
if (log_entry == NULL) {
printk(KERN_WARNING
"Failed to allocate memory for log entry, so ignoring it\n");
return;
Expand Down

0 comments on commit 2629bc8

Please sign in to comment.