net: use hlist_del_rcu() in dev_change_name()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 17 May 2011 17:56:59 +0000 (13:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2011 17:56:59 +0000 (13:56 -0400)
commit372b2312010bece1e36f577d6c99a6193ec54cbd
treeb413461c036d301bcd8c558d4f4e1909d4e57a72
parent6f404e441d169afc90929ef5e451ec9779c1f11a
net: use hlist_del_rcu() in dev_change_name()

Using plain hlist_del() in dev_change_name() is wrong since a
concurrent reader can crash trying to dereference LIST_POISON1.

Bug introduced in commit 72c9528bab94 (net: Introduce
dev_get_by_name_rcu())

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