aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/zl10353_priv.h
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2006-03-30 15:53:32 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-04-02 04:56:01 -0300
commit5e85bd057f0cb29881e3d55d29f48bb55bd2f450 (patch)
tree7d1e582b25710d70487d1dc59e150b387a58c919 /drivers/media/dvb/frontends/zl10353_priv.h
parent2f03ee8e6bd7c6f40a1a0583662308e002d357da (diff)
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/media/dvb/frontends/zl10353_priv.h')
0 files changed, 0 insertions, 0 deletions