kernel_optimize_test/drivers/isdn
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
..
act2000 [PATCH] i4l: __attribute__((packed)) for the CAPI message structs 2006-01-08 20:14:08 -08:00
capi [PATCH] VFS: Permit filesystem to override root dentry on mount 2006-06-23 07:42:45 -07:00
divert
gigaset [PATCH] i4l gigaset: move sysfs entry to tty class device 2006-06-21 12:40:47 -07:00
hardware [PATCH] pcmcia: use bitfield instead of p_state and state 2006-03-31 17:26:33 +02:00
hisax [PATCH] pcmcia: use bitfield instead of p_state and state 2006-03-31 17:26:33 +02:00
hysdn [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
i4l [PATCH] Overrun in isdn_tty.c 2006-05-21 12:59:18 -07:00
icn
isdnloop [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
pcbit
sc [PATCH] i4l: memory leak fix for sc_ioctl(). 2006-06-23 07:43:04 -07:00
Kconfig
Makefile [PATCH] isdn4linux: Siemens Gigaset drivers - Kconfigs and Makefiles 2006-03-26 08:57:05 -08:00