linux/drivers/char/ipmi
Jesper Juhl 80cd69203c ipmi: Fix mem leak in try_init_dmi()
This is only called at init time and only happens if the BIOS screws
something up, so the leak is slight and it is probably not worth sending to
2.6.22.x.  The driver would not initialize the interface in the case, and I
have no reports of this happening.  I have booted and run tests on a system
with this patch.  Note that the original patch was munged by the mailer,
here's a new one.

If we ever hit the "default:" case in the switch in try_init_dmi(),
then we'll leak the storage allocated with kzalloc() and assigned
to 'info'.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-31 15:39:41 -07:00
..
ipmi_bt_sm.c [PATCH] IPMI: remove zero inits 2006-12-10 09:55:40 -08:00
ipmi_devintf.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ipmi_kcs_sm.c [PATCH] IPMI: increase KCS message size 2006-12-07 08:39:48 -08:00
ipmi_msghandler.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
ipmi_poweroff.c drivers/char/ipmi/ipmi_poweroff.c: lower printk severity 2007-07-16 09:05:52 -07:00
ipmi_si_intf.c ipmi: Fix mem leak in try_init_dmi() 2007-07-31 15:39:41 -07:00
ipmi_si_sm.h [PATCH] ipmi: add generic PCI handling 2006-03-26 08:56:56 -08:00
ipmi_smic_sm.c [PATCH] IPMI: Fix BT long busy 2006-12-07 08:39:47 -08:00
ipmi_watchdog.c Revert "ipmi: add new IPMI nmi watchdog handling" 2007-05-14 15:24:24 -07:00
Kconfig Use menuconfig objects II - IPMI 2007-07-16 09:05:40 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00