]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: nfnetlink_log: fix NLA_PUT macro removal bug
authorPatrick McHardy <kaber@trash.net>
Sun, 19 Aug 2012 10:16:08 +0000 (10:16 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 20 Aug 2012 10:40:23 +0000 (12:40 +0200)
commit2dba62c30ec3040ef1b647a8976fd7e6854cc7a7
treee629e07f08aca83acaa18ec53f2c92038d10f492
parentfae6ef87faeb8853896920c68ee703d715799d28
netfilter: nfnetlink_log: fix NLA_PUT macro removal bug

Commit 1db20a52 (nfnetlink_log: Stop using NLA_PUT*().) incorrectly
converted a NLA_PUT_BE16 macro to nla_put_be32() in nfnetlink_log:

-               NLA_PUT_BE16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type));
+               if (nla_put_be32(inst->skb, NFULA_HWTYPE, htons(skb->dev->type))

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_log.c