Re: [BUG] module ns558

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/5/05, Alexander Nyberg <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux