ddi_dma_mem_alloc() doesn't check 'accattrp' argument against NULL.
ddi_dma_mem_alloc() doen't check its paratemer 'accattrp' against NULL before dereferencing, which leads to kernel panic.
Updated by Rich Lowe about 12 years ago
A call to ddi_dma_mem_alloc(9F) with an invalid ddi_device_acc_attr(9S) is erroneous. panicking is the correct thing to be doing.
Updated by Garrett D'Amore about 12 years ago
- Status changed from New to Rejected
Uh, passing NULL here would be an indication of a gross driver programming bug here. Panic is the right thing to do here. I'm rejecting this bug.