6LoWPAN: use the _safe version of list_for_each
authorDan Carpenter <error27@gmail.com>
Tue, 30 Aug 2011 03:46:40 +0000 (03:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2011 19:36:32 +0000 (15:36 -0400)
commitaec9db355ce2b930358ade5a71cc00ac258e1b3f
treeb4b444510c1f75b47ed682bd2c24e34ec749da75
parent90d0963d17c11188d1d986a235b8aa775c2fb8f2
6LoWPAN: use the _safe version of list_for_each

When we kfree(entry) that causes a use-after-free bug so we have to
use list_for_each_entry_safe() safe here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c