]> err.no Git - linux-2.6/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)
commitaaa53c4aba14f14de06419a20e552fe2d8823a33
treef026db39803fa265b588dac40f014cdfd69cbc56
parentf424bb9efaee90b752aabcb4e5e95920ee9580bb
[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