kernel-ark/drivers/char
Catalin Marinas 254e948b29 [PATCH] Fix memory leak in vc_resize/vc_allocate
Memory leaks can happen in the vc_resize() function in drivers/char/vt.c
because of the vc->vc_screenbuf variable overriding in vc_allocate().  The
kmemleak reported trace is as follows:

  <__kmalloc>
  <vc_resize>
  <fbcon_init>
  <visual_init>
  <vc_allocate>
  <con_open>
  <tty_open>
  <chrdev_open>

This patch no longer allocates a screen buffer in vc_allocate() if it was
already allocated by vc_resize().

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-29 09:18:14 -07:00
..
agp
drm
ftape
hw_random [PATCH] fix Intel RNG detection 2006-09-29 09:18:09 -07:00
ip2
ipmi
mwave
pcmcia
rio
tpm
watchdog [PATCH] OMAP: Add Watchdog driver support 2006-09-29 09:18:07 -07:00
.gitignore
amiserial.c
applicom.c
applicom.h
briq_panel.c
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cs5535_gpio.c
cyclades.c
decserial.c
defkeymap.c_shipped
defkeymap.map
digi1.h
digi.h
digiFep1.h
digiPCI.h
ds1286.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
ec3104_keyb.c
efirtc.c
epca.c
epca.h
epcaconfig.h
esp.c
generic_nvram.c
generic_serial.c
genrtc.c
hangcheck-timer.c
hpet.c
hvc_console.c
hvc_console.h
hvc_iseries.c
hvc_rtas.c
hvc_vio.c
hvcs.c
hvsi.c
i8k.c
ip27-rtc.c
isicom.c
istallion.c
ite_gpio.c
Kconfig [PATCH] Remove old drivers/char/s3c2410_rtc.c 2006-09-29 09:18:13 -07:00
keyboard.c
lcd.c
lcd.h
lp.c [PATCH] There is no devfs, there has never been a devfs, we have always been at war with... 2006-09-29 09:18:10 -07:00
Makefile [PATCH] Remove old drivers/char/s3c2410_rtc.c 2006-09-29 09:18:13 -07:00
mbcs.c
mbcs.h
mem.c [PATCH] NOMMU: Set BDI capabilities for /dev/mem and /dev/kmem 2006-09-27 08:26:14 -07:00
misc.c
mmtimer.c
moxa.c
mspec.c
mxser.c
mxser.h
n_hdlc.c
n_r3964.c
n_tty.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c [PATCH] drivers/char/pc8736x_gpio.c: remove unused static functions 2006-09-29 09:18:05 -07:00
ppdev.c
pty.c
qtronix.c
qtronixmap.c_shipped
qtronixmap.map
random.c
raw.c
riscom8_reg.h
riscom8.c
riscom8.h
rocket_int.h
rocket.c
rocket.h
rtc.c [PATCH] remove unnecessary barrier in rtc_get_rtc_time 2006-09-29 09:18:05 -07:00
scan_keyb.c
scan_keyb.h
scc.h
scx200_gpio.c [PATCH] scx200_gpio export cleanups 2006-09-29 09:18:06 -07:00
selection.c [PATCH] tty locking on resize 2006-09-29 09:18:12 -07:00
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c
snsc_event.c
snsc.c
snsc.h
sonypi.c
specialix_io8.h
specialix.c
stallion.c
sx.c
sx.h
sxboards.h
sxwindow.h
synclink_gt.c
synclink.c
synclinkmp.c
sysrq.c [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
tb0219.c
tipar.c
tlclk.c
toshiba.c
tty_io.c [PATCH] tty locking on resize 2006-09-29 09:18:12 -07:00
tty_ioctl.c
vc_screen.c [PATCH] There is no devfs, there has never been a devfs, we have always been at war with... 2006-09-29 09:18:10 -07:00
viocons.c
viotape.c
vme_scc.c
vr41xx_giu.c
vt_ioctl.c [PATCH] tty locking on resize 2006-09-29 09:18:12 -07:00
vt.c [PATCH] Fix memory leak in vc_resize/vc_allocate 2006-09-29 09:18:14 -07:00