kernel_optimize_test/drivers/isdn/sc
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
..
card.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
command.c [PATCH] drivers/isdn/: "extern inline" -> "static inline" 2006-01-08 20:13:48 -08:00
debug.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
event.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hardware.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
includes.h [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
init.c [PATCH] isdn: fix-up schedule_timeout() usage 2005-11-07 07:53:57 -08:00
interrupt.c [PATCH] drivers/isdn/sc/: possible cleanups 2005-06-25 16:24:56 -07:00
ioctl.c [PATCH] i4l: memory leak fix for sc_ioctl(). 2006-06-23 07:43:04 -07:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] drivers/isdn/sc/: possible cleanups 2005-06-25 16:24:56 -07:00
message.c [PATCH] isdn: fix-up schedule_timeout() usage 2005-11-07 07:53:57 -08:00
message.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
packet.c [PATCH] drivers/isdn/sc/: possible cleanups 2005-06-25 16:24:56 -07:00
scioc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
shmem.c [PATCH] drivers/isdn/sc/: possible cleanups 2005-06-25 16:24:56 -07:00
timer.c [PATCH] drivers/isdn/sc/: possible cleanups 2005-06-25 16:24:56 -07:00