dvbdev: fix illegal re-usage of fileoperations struct
commit811a76ef3a25ae2e1531d118c8cd154c2a6757cb
authorMarcel Siegert <mws@linuxtv.org>
Tue, 27 Feb 2007 18:09:49 +0000 (27 13:09 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 3 Mar 2007 05:09:53 +0000 (2 21:09 -0800)
treef3c9e12731b879d1b54ad35253fff0c80e80a237
parentcc36d4a3308f1965f9409985ecbe64a2685d81fa
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>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/dvb/dvb-core/dvbdev.c