]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Fix crash in dev_mc_sync()/dev_mc_unsync()
authorBenjamin Thery <benjamin.thery@bull.net>
Sat, 25 Aug 2007 06:12:08 +0000 (23:12 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 27 Aug 2007 01:35:43 +0000 (18:35 -0700)
commit59d5980c411759d035ee7d2fb70112d533836e5b
treef026db39803fa265b588dac40f014cdfd69cbc56
parent9f9ae8427534f3c61296ae46a4f13ed6cc443914
[NET]: Fix crash in dev_mc_sync()/dev_mc_unsync()

This patch fixes a crash that may occur when the routine dev_mc_sync()
deletes an address from the list it is currently going through. It
saves the pointer to the next element before deleting the current one.
The problem may also exist in dev_mc_unsync().

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev_mcast.c