]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
V4L/DVB: Dvbdev: fix illegal re-usage of fileoperations struct
authorMarcel Siegert <mws@linuxtv.org>
Sun, 25 Feb 2007 23:38:10 +0000 (00:38 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sun, 25 Feb 2007 23:38:10 +0000 (00:38 +0100)
commit399aeb8633a59da4e89d4754f031385c3e34d4b4
treed91bc4dbd217fe3ced238c22d11856370e1e8aba
parent9164edcb4e4a74b4e7d6e57c9d59e2d8fb5654bb
V4L/DVB: 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: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/media/dvb/dvb-core/dvbdev.c