kernel-ark/drivers/char
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
..
agp [AGPGART] 945GM support for agpgart 2006-01-19 16:19:35 -08:00
drm Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 2006-02-02 07:49:43 -08:00
ftape ftape: remove some outdated information from Kconfig files 2006-01-15 01:57:47 +01:00
ip2 [PATCH] ip2main.c warning fixes 2006-02-03 08:32:10 -08:00
ipmi [PATCH] IPMI: fix issues reported by Coverity in ipmi_msghandler.c 2006-02-03 08:32:11 -08:00
mwave
pcmcia
rio [PATCH] rio cleanups 2006-02-03 08:32:04 -08:00
tpm [PATCH] tpm: tpm_bios remove unused variable 2006-02-01 08:53:12 -08:00
watchdog [PATCH] SBC EPX does not check/claim I/O ports it uses (2nd Edition) 2006-02-03 08:32:02 -08:00
.gitignore
amiserial.c [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
applicom.c
applicom.h
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cs5535_gpio.c
cyclades.c [PATCH] new tty buffering locking fix 2006-02-03 08:32:09 -08:00
decserial.c
defkeymap.c_shipped
defkeymap.map
digi1.h
digi.h
digiFep1.h
digiPCI.h
ds1286.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
ec3104_keyb.c
efirtc.c
epca.c
epca.h
epcaconfig.h
esp.c [PATCH] new tty buffering locking fix 2006-02-03 08:32:09 -08:00
generic_nvram.c
generic_serial.c [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
genrtc.c
hangcheck-timer.c [PATCH] s390: hangcheck timer support 2006-02-01 08:53:24 -08:00
hpet.c
hvc_console.c
hvc_vio.c
hvcs.c
hvsi.c
hw_random.c
i8k.c
ip2.c
ip2main.c [PATCH] ip2main.c warning fixes 2006-02-03 08:32:10 -08:00
ip27-rtc.c
isicom.c
istallion.c
ite_gpio.c
Kconfig [PATCH] s390: hangcheck timer support 2006-02-01 08:53:24 -08:00
keyboard.c
lcd.c
lcd.h
lp.c
Makefile
mbcs.c
mbcs.h
mem.c
misc.c
mmtimer.c
moxa.c
mxser.c
mxser.h
n_hdlc.c
n_r3964.c
n_tty.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
ppdev.c
pty.c
qtronix.c
qtronixmap.c_shipped
qtronixmap.map
random.c
raw.c
riscom8_reg.h
riscom8.c [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
riscom8.h
rocket_int.h
rocket.c [PATCH] Fix RocketPort driver 2006-02-03 08:31:59 -08:00
rocket.h
rtc.c
s3c2410-rtc.c
scan_keyb.c
scan_keyb.h
scc.h
scx200_gpio.c
selection.c
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
snsc_event.c
snsc.c
snsc.h
sonypi.c
specialix_io8.h
specialix.c [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
stallion.c return statement cleanup - kill pointless parentheses 2006-01-15 02:37:08 +01:00
sx.c [PATCH] sx.c printk warning fixes 2006-02-03 08:32:03 -08:00
sx.h
sxboards.h
sxwindow.h
synclink_gt.c [PATCH] synclink_gt fix size of register value storage 2006-01-18 19:20:16 -08:00
synclink.c [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
synclinkmp.c
sysrq.c
tb0219.c
tipar.c
tlclk.c [PATCH] tlclk driver update 2006-01-18 19:25:49 -08:00
toshiba.c
tty_io.c [PATCH] new tty buffering locking fix 2006-02-03 08:32:09 -08:00
tty_ioctl.c
vc_screen.c
viocons.c
viotape.c
vme_scc.c
vr41xx_giu.c
vr41xx_rtc.c
vt_ioctl.c
vt.c [PATCH] fbcon: Fix screen artifacts when moving cursor 2006-02-01 08:53:26 -08:00