]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (5244): Dvbdev: fix illegal re-usage of fileoperations struct
authorMarcel Siegert <mws@linuxtv.org>
Tue, 13 Feb 2007 12:46:55 +0000 (09:46 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:35:31 +0000 (13:35 -0200)
commit6b2e57375d2144676c891392f9de7c56940257e8
treebebf31ba4a8cc2a121ca21b39e44cddb2ba7bfd6
parent8b06804f5d150a0b0bc4a8783421dc8649a083a4
V4L/DVB (5244): Dvbdev: fix illegal re-usage of fileoperations struct

Arjan van de Ven <arjan@infradead.org> reported an illegal re-usage of
the fileoperations struct if more than one dvb device (e.g. frontend) is
present.

This patch fixes this issue.

It allocates a new fileoperations struct each time a device is
registered and copies the default template fileops.

Signed-off-by: Marcel Siegert <mws@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-core/dvbdev.c