diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2006-03-30 20:53:32 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-04-02 09:56:01 +0200 |
commit | 5e85bd057f0cb29881e3d55d29f48bb55bd2f450 (patch) | |
tree | 7d1e582b25710d70487d1dc59e150b387a58c919 /drivers/misc/Makefile | |
parent | V4L/DVB (3671): New module parameter 'tv_standard' (dvb-ttpci driver) (diff) | |
download | linux-5e85bd057f0cb29881e3d55d29f48bb55bd2f450.tar.xz linux-5e85bd057f0cb29881e3d55d29f48bb55bd2f450.zip |
V4L/DVB (3672): Fix memory leak in dvr open
The dvr device could be opened multiple times simultaneously in O_RDONLY mode.
Each open after the first would allocate a new dvr buffer (1880 KB) and leak
the old buffer. The first close would de-allocate the dvr buffer and cause
all other open dvrs to stop working. This patch allows only a single O_RDONLY
open of the drv device, as per the API specification. Multiple O_WRONLY opens
are still allowed and don't appear to cause any problems.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/misc/Makefile')
0 files changed, 0 insertions, 0 deletions