From: Stefan Agner <stefan@agner.ch>
To: lars@metafoo.de
Cc: linux-mips@linux-mips.org
Subject: dma: jz4740: Null pointer dereference
Date: Tue, 08 Jul 2014 18:41:16 +0200 [thread overview]
Message-ID: <82522335fb2ef700d5a94f9217cbdff6@agner.ch> (raw)
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
next reply other threads:[~2014-07-08 16:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 16:41 Stefan Agner [this message]
2014-07-08 16:50 ` dma: jz4740: Null pointer dereference Lars-Peter Clausen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=82522335fb2ef700d5a94f9217cbdff6@agner.ch \
--to=stefan@agner.ch \
--cc=lars@metafoo.de \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox