kernel-ark/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
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
i4l [PATCH] Overrun in isdn_tty.c 2006-05-21 12:59:18 -07:00
icn
isdnloop
pcbit
sc [PATCH] i4l: memory leak fix for sc_ioctl(). 2006-06-23 07:43:04 -07:00
Kconfig
Makefile