android_kernel_xiaomi_sm8350/drivers
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
..
acorn
acpi [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
amba
atm
base [PATCH] Export cpu topology in sysfs 2006-02-03 08:32:09 -08:00
block [PATCH] umem: check pci_set_dma_mask return value correctly 2006-02-03 08:32:05 -08:00
bluetooth [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
cdrom
char [PATCH] IPMI: fix issues reported by Coverity in ipmi_msghandler.c 2006-02-03 08:32:11 -08:00
connector
cpufreq [CPUFREQ] Get rid of userspace policy struct, make userspace gov _PPC safe. 2006-01-27 10:36:49 -08:00
crypto
dio
edac [PATCH] edac_mc: Remove include of version.h 2006-02-03 08:32:10 -08:00
eisa
fc4
firmware [PATCH] dell_rbu: fix Bug 5854 2006-01-14 18:27:13 -08:00
hwmon
i2c
ide [PATCH] ide: restore support for AEC6280M cards in aec62xx.c 2006-02-03 08:32:01 -08:00
ieee1394 Actually remove amdtp.[ch], cmp.[ch]. 2006-01-16 19:21:57 -05:00
infiniband IB/mthca: Semaphore to mutex conversions 2006-01-30 16:45:11 -08:00
input Merge master.kernel.org:/pub/scm/linux/kernel/git/dtor/input 2006-01-31 21:18:17 -08:00
isdn [PATCH] i4l: warning fixes 2006-02-03 08:32:11 -08:00
macintosh [PATCH] MODALIAS= for macio 2006-02-01 08:53:19 -08:00
mca
md [PATCH] md: Make sure rdev->size gets set for version-1 superblocks 2006-02-03 08:32:00 -08:00
media [PATCH] fix saa7146 kobject register failure 2006-02-01 08:53:14 -08:00
message [PATCH] I2O: fix and workaround for Motorola/Freescale controller 2006-02-03 08:32:07 -08:00
mfd
misc [SERIAL] Remove UPF_AUTOPROBE and UPF_BOOT_ONLYMCA 2006-01-21 20:06:14 +00:00
mmc Merge master.kernel.org:/home/rmk/linux-2.6-mmc 2006-01-14 19:44:01 -08:00
mtd [PATCH] Fix compilation errors in maps/dc21285.c 2006-02-03 08:32:01 -08:00
net [PATCH] 3c59x: collision statistic fix 2006-02-03 08:32:02 -08:00
nubus
oprofile
parisc
parport [PATCH] parport: fix documentation 2006-02-03 08:32:06 -08:00
pci [PATCH] PowerPC/PCI Hotplug build break 2006-02-01 16:35:29 -08:00
pcmcia
pnp Merge git://git.kernel.org/pub/scm/linux/kernel/git/perex/alsa 2006-02-01 22:08:23 -08:00
rapidio
s390 [PATCH] s390: fix to_channelpath macro 2006-02-03 08:32:01 -08:00
sbus [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
scsi [PATCH] ide-scsi: fix for IDE probe/remove ops changes 2006-02-01 08:53:09 -08:00
serial [PATCH] drivers/serial/jsm/: cleanups 2006-02-03 08:32:08 -08:00
sh
sn [PATCH] Altix ioc3: correct export call 2006-02-01 08:53:25 -08:00
spi
tc
telephony [PATCH] ixj: fix writing silence check 2006-02-03 08:32:08 -08:00
usb Merge master.kernel.org:/pub/scm/linux/kernel/git/dtor/input 2006-01-31 21:18:17 -08:00
video [PATCH] i810fb: Do not probe the third i2c bus by default 2006-02-01 08:53:27 -08:00
w1
zorro
Kconfig [PATCH] EDAC: core EDAC support code 2006-01-18 19:20:31 -08:00
Makefile [PATCH] EDAC: core EDAC support code 2006-01-18 19:20:31 -08:00