inetpeer: Use correct AVL tree base pointer in inet_getpeer().
authorDavid S. Miller <davem@davemloft.net>
Mon, 24 Jan 2011 22:37:46 +0000 (14:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jan 2011 22:38:09 +0000 (14:38 -0800)
commit3408404a4c2a4eead9d73b0bbbfe3f225b65f492
treeb0be5af0a2886a3f5bc075d94c4c621ff6802973
parentd1dc7abf2fafa34b0ffcd070fd59405aa9c0a4d8
inetpeer: Use correct AVL tree base pointer in inet_getpeer().

Family was hard-coded to AF_INET but should be daddr->family.

This fixes crashes when unlinking ipv6 peer entries, since the
unlink code was looking up the base pointer properly.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inetpeer.c