]> git.neil.brown.name Git - history.git/commit
[PATCH] fix module reference counting in zoran driver
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Feb 2004 00:18:11 +0000 (16:18 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 00:18:11 +0000 (16:18 -0800)
commitcb57118ec5443389acbca48306fd6ea195a7f23e
tree1f026f99b429616ce3d939ce4bd4ab11adaf02f2
parente32c02128c7e6150f772ec9b5054d88469765d7c
[PATCH] fix module reference counting in zoran driver

From: Christoph Hellwig <hch@lst.de>

Take a reference before calling into the module and release it after we're
done.  Also remove the useless (and wrong) refcounting in videocodec -
symbols from this module are used by other modules if we call into those
functions so it can't be unloaded anyway.

We really need to add a debug check to tip all those
try_module_get(THIS_MODULE) callers..
drivers/media/video/videocodec.c
drivers/media/video/videocodec.h
drivers/media/video/zr36016.c
drivers/media/video/zr36050.c
drivers/media/video/zr36060.c