From: Malcolm Priestley <tvboxspy@gmail.com>
To: Antti Palosaari <crope@iki.fi>
Cc: linux-media <linux-media@vger.kernel.org>
Subject: Re: dvb_usb_v2: use pointers to properties[REGRESSION]
Date: Sat, 16 Jun 2012 21:17:06 +0100 [thread overview]
Message-ID: <1339877826.2697.4.camel@Route3278> (raw)
In-Reply-To: <4FDCD35D.6020808@iki.fi>
On Sat, 2012-06-16 at 21:41 +0300, Antti Palosaari wrote:
>
> That is what you want to do:
> ****************************
> CALLBACK(struct dvb_usb_adapter *adap)
> {
> struct dvb_frontend *fe = adap->fe[adap->active_fe];
> // now we have pointer to adap and fe
> }
>
> That is what I want to do:
> **************************
> CALLBACK(struct dvb_frontend *fe)
> {
> struct dvb_usb_adapter *adap = fe->dvb->priv;
> // now we have pointer to adap and fe
> }
I just don't like the idea of deliberately sending a NULL object to
a callback.
Ha ... I know what is causing the crash....its in usb_urb.c
int usb_urb_init(struct usb_data_stream *stream,
struct usb_data_stream_properties *props)
{
int ret;
if (stream == NULL || props == NULL)
return -EINVAL;
memcpy(&stream->props, props, sizeof(*props));
usb_clear_halt(stream->udev, usb_rcvbulkpipe(stream->udev,
stream->props.endpoint));
The usb_clear_halt with 0 endpoint.
It can tweaked by sending a valid endpoint.
Regards
Malcolm
next prev parent reply other threads:[~2012-06-16 20:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 22:11 dvb_usb_v2: use pointers to properties[REGRESSION] Malcolm Priestley
2012-06-15 22:54 ` Antti Palosaari
2012-06-16 0:35 ` Malcolm Priestley
2012-06-16 0:55 ` Antti Palosaari
2012-06-16 1:16 ` Antti Palosaari
2012-06-16 12:06 ` Malcolm Priestley
2012-06-16 15:52 ` Antti Palosaari
2012-06-16 18:12 ` Malcolm Priestley
2012-06-16 18:41 ` Antti Palosaari
2012-06-16 20:17 ` Malcolm Priestley [this message]
2012-06-16 20:27 ` Antti Palosaari
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=1339877826.2697.4.camel@Route3278 \
--to=tvboxspy@gmail.com \
--cc=crope@iki.fi \
--cc=linux-media@vger.kernel.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.