dma: jz4740: Null pointer dereference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lars,

While looking through different DMA drivers, just stumbled upon this
inside jz4740_dma_chan_irq:

if (chan->next_sg == chan->desc->num_sgs) {
	chan->desc = NULL;
	vchan_cookie_complete(&chan->desc->vdesc);
                                         ^ null pointer dereference
}

I'm not sure what the correct fix is, hence I thought I report it to you
as author of the driver.

--
Stefan


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux