diff options
author | Zaur Kambarov <kambarov@berkeley.edu> | 2005-06-22 02:14:31 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-22 03:46:12 +0200 |
commit | 589777eab7360894b7ca1c4ba9d252e03b51225b (patch) | |
tree | d32b8dadc4dc52e81d2b9ffbd03d100b168b41fa /include/asm-i386/arch_hooks.h | |
parent | [PATCH] coverity: ipmi: avoid overrun of ipmi_interfaces[] (diff) | |
download | linux-589777eab7360894b7ca1c4ba9d252e03b51225b.tar.xz linux-589777eab7360894b7ca1c4ba9d252e03b51225b.zip |
[PATCH] coverity: idr_get_new_above_int() overrun fix
This patch fixes overrun of array pa:
92 struct idr_layer *pa[MAX_LEVEL];
in
98 l = idp->layers;
99 pa[l--] = NULL;
by passing idp->layers, set in
202 idp->layers = layers;
to function sub_alloc in
203 v = sub_alloc(idp, ptr, &id);
Signed-off-by: Zaur Kambarov <zkambarov@coverity.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386/arch_hooks.h')
0 files changed, 0 insertions, 0 deletions