From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Roskin Date: Wed, 13 Jan 2010 18:00:04 -0500 Subject: [ath9k-devel] ath9k hangs on load in current git: invalid context In-Reply-To: <1263404305.4527.16.camel@mj> References: <1263404305.4527.16.camel@mj> Message-ID: <1263423604.6580.17.camel@mj> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, 2010-01-13 at 12:38 -0500, Pavel Roskin wrote: > BUG: unable to handle kernel NULL pointer dereference at 00000000000000f8 > IP: [] ath9k_hw_intrpend+0xc/0x70 [ath9k_hw] ath9k_hw_intrpend() is called with ah = NULL from ath_isr(). ath_isr() checks if SC_OP_INVALID is set, but doesn't check if ah is NULL. Adding debugging code shows that sc->sc_flags is 0 when it happens. This must be caused by the recent changes in the initialization. SC_OP_INVALID should be set in ath_pci_probe() before request_irq(). -- Regards, Pavel Roskin