From: Jayachandran C Date: Wed, 12 Apr 2006 00:25:38 +0000 (-0700) Subject: [BRIDGE] ebtables: fix allocation in net/bridge/netfilter/ebtables.c X-Git-Tag: v2.6.17-rc2~82^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ad4d2f6901437ba4717a26d395a73ea362d25c6;p=pandora-kernel.git [BRIDGE] ebtables: fix allocation in net/bridge/netfilter/ebtables.c Allocate an array of 'struct ebt_chainstack *', the current code allocates array of 'struct ebt_chainstack'. akpm: converted to use the foo = alloc(sizeof(*foo)) form. Which would have prevented this from happening in the first place. akpm: also removed unneeded typecast. akpm: what on earth is this code doing anyway? cpu_possible_map can be sparse.. Signed-off-by: Jayachandran C. Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed