From: Keyoor Khristi Date: Mon, 27 Apr 2009 18:30:02 +0530 Subject: [ath9k-devel] panic from xmit.c Message-ID: <6b4fbcea0904270600p4e9cd48v7b541c1671995641@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi All, We saw a kernel panic from xmit.c twice with many users connected. I think the panic is happening from ath_tx_processq function and this piece from it, ds = lastbf ->bf_desc; /* NB: last decriptor */ I deduced this from the panic message. I think lastbf is NULL because bf ->bf_lastbf is NULL. I think there is only one way in which bf_lastbf can stay NULL. It is in function , 880 ATH_TXBUF_RESET (tbf ); 888 if (bf_lastq) { 894 } else { 895 tbf ->bf_state= bf_last ->bf_state ; 896 tbf ->bf_lastfrm= tbf ; In case of bf_lastq being non-NULL, bf_lastbf would be pointing to bf_lastq. But when bf_lastq is NULL, tbf->bf_lastbf will remain NULL. This can cause the above mentioned panic. I think after line 896 another line should be added, 897 tbf->bf_lastbf = tbf ->bf_lastfrm; The panic has been very incosistent to be reproduced, so i've not been able to check this change. If veterns of the ath9k development team thinks this is a correct way to make sure bf_lastbf doesnt remain NULL, please add it (or at least pursue it). Please let me know if my analysis is incorrect. Regards, Keyoor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090427/0fd458ec/attachment.htm