]> git.hungrycats.org Git - linux/commit
[PATCH] zoran: add release callback
authorAndrew Morton <akpm@osdl.org>
Sun, 31 Aug 2003 11:28:14 +0000 (04:28 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 31 Aug 2003 11:28:14 +0000 (04:28 -0700)
commitb8c0b00ff871eb17ebdb5270b7634bd26f60215c
tree699af9ef1697e0293999519a128d861eaeed6b7f
parentef3928858c9458eddce012366ca47d00f266e8fe
[PATCH] zoran: add release callback

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch adds a release callback which frees the video_device struct.
This is needed to prevent freeing memory before it's not in use anymore,
as described in http://lwn.net/Articles/36850/. Without this, the driver
will give a warning when loaded. It might crash when unloading (see
article), too. The video4linux patch (by Gerd Knorr) was accepted a week
(or 2?) ago, but I forgot to adapt my driver to it.
drivers/media/video/zoran.h
drivers/media/video/zoran_card.c
drivers/media/video/zoran_card.h
drivers/media/video/zoran_driver.c