[PATCH] coverity: ipmi: avoid overrun of ipmi_interfaces[]
commit3a845099b20e81fb678521f034bbdcd69208da4e
authorZaur Kambarov <kambarov@berkeley.edu>
Wed, 22 Jun 2005 00:14:30 +0000 (21 17:14 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:11 +0000 (21 18:46 -0700)
tree99f3a8259c54616a1a0fd30f25e34927c36c3eff
parent7f20b6a4792c1b5033583c23b5594887dd3867b9
[PATCH] coverity: ipmi: avoid overrun of ipmi_interfaces[]

Fix overrun of static array "ipmi_interfaces" of size 4 at position 4 with
index variable "if_num".

Definitions involved:
297   #define MAX_IPMI_INTERFACES 4
298   static ipmi_smi_t ipmi_interfaces[MAX_IPMI_INTERFACES];

Signed-off-by: Zaur Kambarov <zkambarov@coverity.com>
Cc: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_msghandler.c