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)
commitb61901024776b25ce7b8edc31bb1757c7382a88e
treebebf31ba4a8cc2a121ca21b39e44cddb2ba7bfd6
parente1af498063007cee5d7ec5af1e0cf25c088d05c7
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