From: Trent Piepho Date: Thu, 30 Mar 2006 18:53:32 +0000 (-0300) Subject: V4L/DVB (3672): Fix memory leak in dvr open X-Git-Tag: v2.6.17-rc1~12^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e85bd057f0cb29881e3d55d29f48bb55bd2f450;p=pandora-kernel.git 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 Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed