]> Pileus Git - ~andy/linux/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)
commit639739b5e609a5074839bb22fc061b37baa06269
treefdfb281e6c5d629ecec0702cf9d89f3a3f818ee6
parenta8e9fd0f7462f5cada5189513d12fe6c9cce2105
ipv6: fix null pointer dereference in __ip6addrlbl_add

Commit b67bfe0d42cac56c512dd5da4b1b347a23f4b70a ("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