public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* struct dvb_frontend not initialized correctly / random id value since MFE merge
@ 2009-02-22 19:31 Matthias Schwarzott
  2009-02-22 23:44 ` Andreas Oberritter
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Schwarzott @ 2009-02-22 19:31 UTC (permalink / raw)
  To: linux-media; +Cc: Steven Toth

Hi there!

MFE patches added a variable "id" to struct dvb_frontend.
This variable seems to be uninitialized for some drivers.

The result is for my skystar2 card (using stv0299 frontend) it sometimes is 0 
as it should but sometimes it is a random value, so I get this register 
message:
DVB: registering adapter 1 frontend -10551321 (ST STV0299 DVB-S)

The related kernel thread then also has a strange name like:
kdvb-ad-1-fe--1

The same happens for my dvb-ttpci card using ves1x93 frontend.

Now I wonder if all frontend drivers should be switched to use kzalloc instead 
of kmalloc for struct dvb_frontend, or if it is the bridge driver that should 
init the id-value.
What about all other members of this struct? Will they be initialized 
correctly?

Regards
Matthias

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-22 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-22 19:31 struct dvb_frontend not initialized correctly / random id value since MFE merge Matthias Schwarzott
2009-02-22 23:44 ` Andreas Oberritter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox