1
linux/drivers/char/ipmi
Jayachandran C 12fc1d7b4b [PATCH] IPMI: fix issues reported by Coverity in ipmi_msghandler.c
While looking to the report by Coverity in ipmi, I came across the
following issue:

The IPMI message handler relies on two defines which are the same -one in
include/linux/ipmi.h
#define IPMI_NUM_CHANNELS 0x10
and one in drivers/char/ipmi/ipmi_msghandler.
#define IPMI_MAX_CHANNELS       16
These are used interchangeably in ipmi_msghandler.c, but since the array
addr->channels[] is of size IPMI_MAX_CHANNELS, I have made a patch that
uses IPMI_MAX_CHANNELS for all the checks for the array index.

NOTE: You could probably remove the line that defines IPMI_NUM_CHANNELS
from ipmi.h, or move IPMI_MAX_CHANNELS to ipmi.h

Signed-off-by: Jayachandran C. <c.jayachandran@gmail.com>
Cc: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-03 08:32:11 -08:00
..
ipmi_bt_sm.c [PATCH] ipmi: bt restart reset fixes 2005-11-07 07:53:44 -08:00
ipmi_devintf.c [PATCH] Driver Core: fix up all callers of class_device_create() 2005-10-28 09:52:52 -07:00
ipmi_kcs_sm.c [PATCH] ipmi: kcs error0 delay 2005-11-07 07:53:44 -08:00
ipmi_msghandler.c [PATCH] IPMI: fix issues reported by Coverity in ipmi_msghandler.c 2006-02-03 08:32:11 -08:00
ipmi_poweroff.c [PATCH] ipmi: fix compile errors with PROC_FS=n 2006-01-10 08:01:25 -08:00
ipmi_si_intf.c [PATCH] ipmi: mem_{in,out}[bwl] => intf_mem_{in,out}[bwl] 2006-02-03 08:32:09 -08:00
ipmi_si_sm.h [PATCH] ipmi: kcs error0 delay 2005-11-07 07:53:44 -08:00
ipmi_smic_sm.c [PATCH] ipmi: more dell fixes 2005-11-07 07:53:44 -08:00
ipmi_watchdog.c [PATCH] ipmi: fix watchdog timeout panic handling 2005-11-07 07:53:45 -08:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00