Re: xhci_hcd - bug: unable to handle kernel NULL pointer dereference (ring_doorbell_for_active_rings)

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

 



On Wed, Jul 4, 2012 at 8:29 AM, Takashi Iwai <tiwai@xxxxxxx> wrote:
> At Wed, 4 Jul 2012 08:17:14 -0400,
> Sergio Correia wrote:
>>
>> Hi people,
>>
>> On Mon, Jun 25, 2012 at 6:29 AM, Takashi Iwai <tiwai@xxxxxxx> wrote:
>>
>> [...]
>>
>> >
>> > So, it's basically the new endpoint streaming stuff that might break
>> > something for xhci.
>> >
>> > Daniel, any clue?
>> >
>>
>> any ideas for me to try out?
>
> Just to be srue:
> could you try the patch below on 3.5-rc5 or later?
>

I had no access to the device yesterday, but today I will be able to
test it later on, then I will report back.

thanks,
Sergio

>
> Takashi
>
> ---
> diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
> index 54607f8..f0ede13 100644
> --- a/sound/usb/pcm.c
> +++ b/sound/usb/pcm.c
> @@ -387,7 +387,7 @@ add_sync_ep:
>                 subs->data_endpoint->sync_master = subs->sync_endpoint;
>         }
>
> -       if ((err = snd_usb_init_pitch(subs->stream->chip, subs->interface, alts, fmt)) < 0)
> +       if ((err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt)) < 0)
>                 return err;
>
>         subs->cur_audiofmt = fmt;
> @@ -450,7 +450,7 @@ static int snd_usb_hw_params(struct snd_pcm_substream *substream,
>                 struct usb_interface *iface;
>                 iface = usb_ifnum_to_if(subs->dev, fmt->iface);
>                 alts = &iface->altsetting[fmt->altset_idx];
> -               ret = snd_usb_init_sample_rate(subs->stream->chip, subs->interface, alts, fmt, rate);
> +               ret = snd_usb_init_sample_rate(subs->stream->chip, fmt->iface, alts, fmt, rate);
>                 if (ret < 0)
>                         return ret;
>                 subs->cur_rate = rate;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux