Skip to contentSkip to conversation

: Missing owner-field initialization in iptable_raw

NETFILTER Applied Patrick McHardy 2 participants 2 messages May 2, 2005 – May 3, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

table->owner must be initialized so module references can be taken by nf_queue().

[NETFILTER]: Missing owner-field initialization in iptable_raw

---
commit 480fc9b2802f2093e728567010506732e382b688 tree 97b316503a4524074c05d5fb4cab63264690d0d6 parent c4644e58c8b52dca9699e8ee0e975f5f13eb4d2c author Patrick McHardy <[email protected]> 1115054535 +0200 committer Patrick McHardy <[email protected]> 1115054535 +0200

net/ipv4/netfilter/iptable_raw.c (mode:100644 sha1:47449ba83eb9410280a8463b477501d839ff32bb) renamed from net/ipv4/netfilter/iptable_raw.c (mode:100644 sha1:01b4a3c814d398f21d29dec0f7d7bf1453b1ce7e) +4 -2
Index: net/ipv4/netfilter/iptable_raw.c
===================================================================
@@ -103,13 +103,15 @@
 	  .hook = ipt_hook, 
 	  .pf = PF_INET, 
 	  .hooknum = NF_IP_PRE_ROUTING, 
-	  .priority = NF_IP_PRI_RAW
+	  .priority = NF_IP_PRI_RAW,
+	  .owner = THIS_MODULE,
 	},
 	{
 	  .hook = ipt_hook, 
 	  .pf = PF_INET, 
 	  .hooknum = NF_IP_LOCAL_OUT, 
-	  .priority = NF_IP_PRI_RAW
+	  .priority = NF_IP_PRI_RAW,
+	  .owner = THIS_MODULE,
 	},
 };
 
maintainer Applied
#1 lore raw
Quoted 2 lines · On Mon, 02 May 2005 22:24:03 +0200 Patrick McHardy <[email protected]> wrote:

table->owner must be initialized so module references can be taken by nf_queue().

Applied, thanks Patrick.