diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2008-02-19 17:18:47 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-19 17:18:47 -0800 |
commit | eb1197bc0e20d3ceb450883dbd181460252f0306 (patch) | |
tree | 7d8b568a0d0ccc9b882209c19c7a0e720b77f14b /net/ipv4 | |
parent | f449b3b54d2263d65a11429050765c325c9809f4 (diff) | |
download | op-kernel-dev-eb1197bc0e20d3ceb450883dbd181460252f0306.zip op-kernel-dev-eb1197bc0e20d3ceb450883dbd181460252f0306.tar.gz |
[NETFILTER]: Fix incorrect use of skb_make_writable
http://bugzilla.kernel.org/show_bug.cgi?id=9920
The function skb_make_writable returns true or false.
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/arpt_mangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/arpt_mangle.c b/net/ipv4/netfilter/arpt_mangle.c index 45fa4e2..3f4222b 100644 --- a/net/ipv4/netfilter/arpt_mangle.c +++ b/net/ipv4/netfilter/arpt_mangle.c @@ -19,7 +19,7 @@ target(struct sk_buff *skb, unsigned char *arpptr; int pln, hln; - if (skb_make_writable(skb, skb->len)) + if (!skb_make_writable(skb, skb->len)) return NF_DROP; arp = arp_hdr(skb); |