From: Zaur Kambarov Date: Wed, 22 Jun 2005 00:14:31 +0000 (-0700) Subject: [PATCH] coverity: idr_get_new_above_int() overrun fix X-Git-Tag: v2.6.13-rc4~130^2~202^2~164 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=589777eab7360894b7ca1c4ba9d252e03b51225b;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed