From: Patrick McHardy Date: Thu, 31 Jan 2008 11:58:01 +0000 (-0800) Subject: [NETFILTER]: nfnetlink_log: fix typo X-Git-Tag: v2.6.25-rc1~1089^2~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41d0cdedd5d0a067069a1559315aa9bfdf00794a;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [NETFILTER]: nfnetlink_log: fix typo It should use htonl for the GID, not htons. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 5013cb9..2348fcb 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -467,7 +467,7 @@ __build_packet_message(struct nfulnl_instance *inst, read_lock_bh(&skb->sk->sk_callback_lock); if (skb->sk->sk_socket && skb->sk->sk_socket->file) { __be32 uid = htonl(skb->sk->sk_socket->file->f_uid); - __be32 gid = htons(skb->sk->sk_socket->file->f_gid); + __be32 gid = htonl(skb->sk->sk_socket->file->f_gid); /* need to unlock here since NLA_PUT may goto */ read_unlock_bh(&skb->sk->sk_callback_lock); NLA_PUT_BE32(inst->skb, NFULA_UID, uid);