diff options
author | xyzzy@t2.domain.actdsltmp <xyzzy@t2.domain.actdsltmp> | 2006-03-30 19:53:32 +0100 |
---|---|---|
committer | xyzzy@t2.domain.actdsltmp <xyzzy@t2.domain.actdsltmp> | 2006-03-30 19:53:32 +0100 |
commit | 5b513ea826a257bfa13e6083edd93815242f3730 (patch) | |
tree | 8429f9f6186717270914dc7e49ebb9e18ddc5f22 /linux/drivers/media/dvb/frontends/lnbp21.h | |
parent | 35c5ecc171a4a76c0a7a35e23e0ac2d25caa91ae (diff) | |
download | mediapointer-dvb-s2-5b513ea826a257bfa13e6083edd93815242f3730.tar.gz mediapointer-dvb-s2-5b513ea826a257bfa13e6083edd93815242f3730.tar.bz2 |
Fix memory leak in dvr open
From: Trent Piepho <xyzzy@speakeasy.org>
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>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lnbp21.h')
0 files changed, 0 insertions, 0 deletions