Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Driver question of dvb_frontend.c
Falck Kenneth writes:
> I've been reviewing the driver code lately. Looking at dvb_frontend.c I see
> >static int
> >fe_fail(dvb_front_t *fe)
> > FrontendEvent ev;
> > fe->tuning=FE_STATE_IDLE;
> > ev.type=FE_FAILURE_EV;
> > fe_add_event(&fe->events, &ev);
> > return -1;
> I'm not a really driver guy, but doesn't this mean, that the FrontendEvent
> is allocated on the stack, and is thus random data?
> Should there be something like:
> ev.u.failureEvent = 0;
> demod_command(fe, FE_READ_STATUS, &ev.u.failureEvent);
> before adding the event to the queue?
To unsubscribe send a mail to email@example.com with "unsubscribe linux-dvb" as subject.
Main Index |