kernel-ark/drivers
Jesper Juhl 94a6735cd6 [PATCH] i4l: memory leak fix for sc_ioctl().
Fix leak of `rcvmsg' in sc_ioctl().

There are two returns in the switch in sc_ioctl (the SCIOCSTART case) that
may leak `rcvmsg'.  This patch fixes that by adding a kfree() call at the
beginning of that case.

Bug found by the coverity checker as #1098

Eric Sesterhenn send me a patch to fix the leak(s) by adding 2 kfree()
calls before the returns, I changed that into just a single call at the
beginning.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-23 07:43:04 -07:00
..
acorn
acpi
amba
atm
base
block
bluetooth
cdrom
char
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firmware
hwmon
i2c
ide
ieee1394
infiniband
input [PATCH] vfs: add lock owner argument to flush operation 2006-06-23 07:43:02 -07:00
isdn [PATCH] i4l: memory leak fix for sc_ioctl(). 2006-06-23 07:43:04 -07:00
leds
macintosh [PATCH] m68k: windfarm is powerpc-only, don't do it on m68k macs 2006-06-23 07:43:01 -07:00
mca
md
media
message
mfd
misc
mmc
mtd
net
nubus
oprofile
parisc
parport [PATCH] Remove CONFIG_PARPORT_ARC, drivers/parport/parport_arc.c 2006-06-23 07:43:03 -07:00
pci
pcmcia
pnp
rapidio
rtc
s390
sbus
scsi [PATCH] vfs: add lock owner argument to flush operation 2006-06-23 07:43:02 -07:00
serial
sh
sn
spi
tc
telephony
usb [PATCH] clean up default value of USB_ISP116X_HCD, USB_SL811_HCD and USB_SL811_CS 2006-06-23 07:43:04 -07:00
video
w1
zorro
Kconfig
Makefile