Re: Since the reorganization (2002-04-21) cs module doesn't work anymore


From: Jouni Malinen (jkmaline_at_cc.hut.fi)
Date: 2002-05-10 15:18:11 UTC



On Fri, May 10, 2002 at 03:48:42AM +0200, Dominique Blas wrote:

> But now, just after hostap_cs is loaded my 2.4.17 kernel panics despite
> the recent patch applied.

Following patch fixes one bug causing kernel panics with hostap_cs.o if PC Card resource verification fails for some reason. This might be the reason for your kernel panic, but it might as well be something else since this crash would require the card initialization to fail. If the problem persists, it would be useful to see the error message from the kernel with back trace resolved to function names..

diff -u -p -r1.59 prism2_ap.c
--- prism2_ap.c 5 May 2002 10:31:18 -0000 1.59 +++ prism2_ap.c 9 May 2002 05:13:02 -0000 @@ -394,7 +394,10 @@ void ap_control_flush_macs(struct mac_re  {

        struct list_head *ptr, *n;
        struct mac_entry *entry;

-
+
+       if (mac_restrictions->entries == 0)
+               return;
+
        spin_lock_bh(&mac_restrictions->lock);
        for (ptr = mac_restrictions->mac_list.next, n = ptr->next;
             ptr != &mac_restrictions->mac_list;


-- 
Jouni Malinen                                            PGP id EFC895FA


This archive was generated by hypermail 2.1.4.