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
 > this:
 > 
 > >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?

Yes, thanks.


Ralph


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.


Home | Main Index | Thread Index