forked from luck/tmp_suning_uos_patched
94a6735cd6
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> |
||
---|---|---|
.. | ||
card.h | ||
command.c | ||
debug.h | ||
event.c | ||
hardware.h | ||
includes.h | ||
init.c | ||
interrupt.c | ||
ioctl.c | ||
Kconfig | ||
Makefile | ||
message.c | ||
message.h | ||
packet.c | ||
scioc.h | ||
shmem.c | ||
timer.c |