Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash in wcn36xx_dxe_tx_frame #9

Open
silverjam opened this issue Apr 30, 2014 · 1 comment
Open

crash in wcn36xx_dxe_tx_frame #9

silverjam opened this issue Apr 30, 2014 · 1 comment

Comments

@silverjam
Copy link
Member

Issue by bcopeland from Friday Mar 07, 2014 at 14:55 GMT
Originally opened as https://github.com/cozybit/wcn36xx/issues/8


[ 29.886677] Unable to handle kernel NULL pointer dereference at virtual address 00000050
[ 29.887959] PC is at wcn36xx_dxe_tx_frame+0x278/0x3b4 [wcn36xx]

Code in question is:

 desc->src_addr_l = dma_map_single(NULL,
                                   ctl->skb->data,
                                   ctl->skb->len,
                                   DMA_TO_DEVICE);

 desc->dst_addr_l = ch->dxe_wq;
 desc->fr_len = ctl->skb->len;   <--- oops

So ctl->skb is NULL and some locking needs to be done here.

@bcopeland
Copy link
Contributor

I have some locking fixes for this, basically spinlocking over all accesses to ctl, I just need to figure out how to do it in a little bit more lightweight fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants