]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix null pointer dereference in __ip6addrlbl_add
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 3 Sep 2013 00:13:31 +0000 (02:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 18:14:53 +0000 (14:14 -0400)
commit1a376530abfa3244f86e97fdef2183e8b639b70b
treefdfb281e6c5d629ecec0702cf9d89f3a3f818ee6
parent06072cb9c0ee5bb59f023b4f99e0cf123bd9313b
ipv6: fix null pointer dereference in __ip6addrlbl_add

Commit d2c5b6e33350be0e68749c9538c1ac409c57d937 ("hlist: drop
the node parameter from iterators") changed the behavior of
hlist_for_each_entry_safe to leave the p argument NULL.

Fix this up by tracking the last argument.

Reported-by: Michele Baldessari <michele@acksyn.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Tested-by: Michele Baldessari <michele@acksyn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrlabel.c