[TIPC]: Fix infinite loop in netlink handler
authorFlorian Westphal <fw@strlen.de>
Sun, 24 Jun 2007 05:59:40 +0000 (22:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Jun 2007 05:59:40 +0000 (22:59 -0700)
commit64beb8f3eb3c724add64ca3272915528e10213c1
treed1eb9ca05352243e44340f9af403c9532690b252
parentdbbeb2f9917792b989b6269ebfe24257f9aa1618
[TIPC]: Fix infinite loop in netlink handler

The tipc netlink config handler uses the nlmsg_pid from the
request header as destination for its reply. If the application
initialized nlmsg_pid to 0, the reply is looped back to the kernel,
causing hangup. Fix: use nlmsg_pid of the skb that triggered the
request.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink.c