Re: [BUG] module ns558

From: Dmitry Torokhov
Date: Wed Aug 10 2005 - 10:10:40 EST


On 8/5/05, Alexander Nyberg <alexn@xxxxxxxxx> wrote:
>
> Please try this:
>
> Index: linux-2.6/drivers/input/gameport/ns558.c
> ===================================================================
> --- linux-2.6.orig/drivers/input/gameport/ns558.c 2005-07-31 18:10:26.000000000 +0200
> +++ linux-2.6/drivers/input/gameport/ns558.c 2005-08-05 21:20:59.000000000 +0200
> @@ -275,9 +275,9 @@
>
> static void __exit ns558_exit(void)
> {
> - struct ns558 *ns558;
> + struct ns558 *ns558, *safe;
>
> - list_for_each_entry(ns558, &ns558_list, node) {
> + list_for_each_entry_safe(ns558, safe, &ns558_list, node) {
> gameport_unregister_port(ns558->gameport);
> release_region(ns558->io & ~(ns558->size - 1), ns558->size);
> kfree(ns558);
> -

I think this one should go into 2.6.13 and probably in -stable too...

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/