This is a note to let you know that I've just added the patch titled bcma: fix unregistration of cores
to the 3.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: bcma-fix-unregistration-of-cores.patch and it can be found in the queue-3.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@vger.kernel.org> know about it. >From 1fffa905adffbf0d3767fc978ef09afb830275eb Mon Sep 17 00:00:00 2001 From: Piotr Haber <pha...@broadcom.com> Date: Thu, 11 Oct 2012 14:05:15 +0200 Subject: bcma: fix unregistration of cores From: Piotr Haber <pha...@broadcom.com> commit 1fffa905adffbf0d3767fc978ef09afb830275eb upstream. When cores are unregistered, entries need to be removed from cores list in a safe manner. Reported-by: Stanislaw Gruszka <sgrus...@redhat.com> Reviewed-by: Arend Van Spriel <ar...@broadcom.com> Signed-off-by: Piotr Haber <pha...@broadcom.com> Signed-off-by: John W. Linville <linvi...@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- drivers/bcma/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c @@ -141,9 +141,10 @@ static int bcma_register_cores(struct bc static void bcma_unregister_cores(struct bcma_bus *bus) { - struct bcma_device *core; + struct bcma_device *core, *tmp; - list_for_each_entry(core, &bus->cores, list) { + list_for_each_entry_safe(core, tmp, &bus->cores, list) { + list_del(&core->list); if (core->dev_registered) device_unregister(&core->dev); } Patches currently in stable-queue which might be from pha...@broadcom.com are queue-3.6/bcma-fix-unregistration-of-cores.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html