From: Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>
To: "Matwey V. Kornilov" <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>
Cc: Linux OMAP List
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
Date: Fri, 20 May 2016 15:10:19 -0500 [thread overview]
Message-ID: <20160520201019.GA3432@uda0271908> (raw)
In-Reply-To: <CAJs94EZjWi0KGn_siyXNGvjO2DTh2aXtYqKzy7Km7mA_bYTeKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi,
On Fri, May 20, 2016 at 04:32:06PM +0300, Matwey V. Kornilov wrote:
> 2016-05-20 16:19 GMT+03:00 <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
> > Hello,
> >
> > I am running 4.6-rc3 on BealgeBone Black and when I try to interract
> > with pwc webcam attached to usb port the following kernel panic
> > happening.
>
> Please note, that the same is happening with 4.6.0 release.
Please apply the following patch and reproduce the oops, I'd like to
check if the oops is caused by NULL of hw_ep->in_qh.
Regards,
-Bin.
---8<-------
diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c
index e499b86..3492c6e 100644
--- a/drivers/usb/musb/musb_cppi41.c
+++ b/drivers/usb/musb/musb_cppi41.c
@@ -489,8 +489,11 @@ static int cppi41_dma_channel_program(struct dma_channel *channel,
if (is_host_active(cppi41_channel->controller->musb)) {
if (cppi41_channel->is_tx)
hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult;
- else
+ else {
+ if (!cppi41_channel->hw_ep->in_qh)
+ dev_err(NULL, "->in_qh is NULL\n");
hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult;
+ }
}
channel->status = MUSB_DMA_STATUS_BUSY;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-05-20 20:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 13:19 [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference matwey-TTlVxmypnbovJsYlp49lxw
[not found] ` <1463750386-6259-1-git-send-email-matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>
2016-05-20 13:32 ` Matwey V. Kornilov
[not found] ` <CAJs94EZjWi0KGn_siyXNGvjO2DTh2aXtYqKzy7Km7mA_bYTeKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 20:10 ` Bin Liu [this message]
2016-05-20 20:55 ` Matwey V. Kornilov
[not found] ` <CAJs94EZSwJ=sJv6NtR6RNdiugiSQQpam-TFRTn0uZZJ4MLsr5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 20:58 ` Matwey V. Kornilov
[not found] ` <CAJs94EY3BfQjkk+0hKR5WfKggvmtgV0yz77awiX8Lt_pLYs3ug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 21:05 ` Matwey V. Kornilov
[not found] ` <CAJs94EZm3aV23x3hGHLpM4dAC+C9rH-ro3JbWU=se_QWv9jRmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 21:12 ` Bin Liu
2016-05-20 21:20 ` Matwey V. Kornilov
[not found] ` <CAJs94Eb6tfJHV7YeAA0UATF2A5oNrCDTSqTAdHbacmrm4Qw=8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-21 3:13 ` Bin Liu
[not found] ` <CADYTM3bcTWSBf9HXKpsud6i--_04tsKZX1J3p9_6TqL1gp9YnA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-21 17:50 ` Matwey V. Kornilov
[not found] ` <CAJs94EYePeENwsHD--E6cGVP22-nfYcy_yTK-V2Hc1wWYb04vw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-21 19:04 ` Matwey V. Kornilov
[not found] ` <CAJs94EaxaQ4U9T48Lz-jox4VkS-ThDQ3DkSB+1SvnFzMXM_+FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-23 13:36 ` Bin Liu
2016-05-23 13:41 ` Matwey V. Kornilov
2016-05-28 13:33 ` Matwey V. Kornilov
2016-05-23 13:35 ` Bin Liu
2016-05-23 13:38 ` Matwey V. Kornilov
[not found] ` <CAJs94EZkDGhoUmQe8LdAUwoaYJM8eGH=0nyEbUzv6YNsJPX2Qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-23 15:13 ` Tony Lindgren
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=20160520201019.GA3432@uda0271908 \
--to=b-liu-l0cymroini0@public.gmane.org \
--cc=dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.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 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.