All of lore.kernel.org
 help / color / mirror / Atom feed
* dma: jz4740: Null pointer dereference
@ 2014-07-08 16:41 Stefan Agner
  2014-07-08 16:50 ` Lars-Peter Clausen
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2014-07-08 16:41 UTC (permalink / raw)
  To: lars; +Cc: linux-mips

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-08 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-08 16:41 dma: jz4740: Null pointer dereference Stefan Agner
2014-07-08 16:50 ` Lars-Peter Clausen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.