]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv6: fix NULL reference in proxy neighbor discovery
authorstephen hemminger <shemminger@vyatta.com>
Mon, 21 Jun 2010 11:00:13 +0000 (11:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:41 +0000 (10:29 -0700)
commit1c77d470de34f59fc60e24c6e8f90ab9917503a0
tree94120cb36181a66a1cca4ca502e85abd7d8ba787
parent8c5b63eb1881419d190bd6f2e414a06a7d3fa172
ipv6: fix NULL reference in proxy neighbor discovery

commit 9f888160bdcccf0565dd2774956b8d9456e610be upstream.

The addition of TLLAO option created a kernel OOPS regression
for the case where neighbor advertisement is being sent via
proxy path.  When using proxy, ipv6_get_ifaddr() returns NULL
causing the NULL dereference.

Change causing the bug was:
commit f7734fdf61ec6bb848e0bafc1fb8bad2c124bb50
Author: Octavian Purdila <opurdila@ixiacom.com>
Date:   Fri Oct 2 11:39:15 2009 +0000

    make TLLAO option for NA packets configurable

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/ndisc.c