android_kernel_xiaomi_sm7250/drivers
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
..
acorn
acpi
amba
ata
atm
base [PATCH] kthread: drivers/base/firmware_class.c 2006-09-29 09:18:08 -07:00
block [PATCH] kthread: convert loop.c to kthread 2006-09-29 09:18:06 -07:00
bluetooth [Bluetooth] Code cleanup for the HCI UART driver 2006-09-28 18:01:30 -07:00
cdrom
char [PATCH] Fix memory leak in vc_resize/vc_allocate 2006-09-29 09:18:14 -07:00
clocksource
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firmware [PATCH] DMI: Decode and save OEM String information 2006-09-29 09:18:09 -07:00
hwmon hwmon: Remove Yuan Mu's address 2006-09-28 15:31:19 -07:00
i2c
ide [PATCH] atiixp: ATI SB600 IDE support for various modes 2006-09-29 09:18:12 -07:00
ieee1394
infiniband [IPV4]: annotate inetdev.h helpers 2006-09-28 18:01:05 -07:00
input [PATCH] OMAP: Add keypad driver 2006-09-29 09:18:07 -07:00
isdn [IPV4]: annotate struct in_ifaddr 2006-09-28 18:00:55 -07:00
leds [PATCH] Make net48xx-led use scx200_gpio_ops 2006-09-29 09:18:06 -07:00
macintosh [PATCH] Fix uninitialised spinlock in via-pmu-backlight code. 2006-09-29 09:18:03 -07:00
mca
md
media
message
mfd [PATCH] ucb1x00-ts: handle errors from input_register_device() 2006-09-29 09:18:10 -07:00
misc
mmc
mtd
net [PATCH] Move valid_dma_direction() from x86_64 to generic code 2006-09-29 09:18:10 -07:00
nubus
oprofile
parisc
parport [PATCH] CONFIG_PM=n slim: drivers/parport/parport_serial.c 2006-09-29 09:18:13 -07:00
pci
pcmcia
pnp
rapidio
rtc
s390 [IPV4]: inet_addr_type() annotations 2006-09-28 18:01:07 -07:00
sbus
scsi
serial [PATCH] fix serial/amba-pl011.c console Kconfig 2006-09-29 09:18:14 -07:00
sh
sn
spi
tc
telephony
usb USB: fix build error in ohci driver 2006-09-28 17:06:45 -07:00
video
w1
zorro
Kconfig
Makefile