flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO
commit8cae69607df46a03b65b533794f31a3259dced72
authorChangli Gao <xiaosuo@gmail.com>
Fri, 23 Apr 2010 17:17:45 +0000 (23 13:17 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:32 +0000 (12 15:02 -0700)
tree1f3c9ce4c48314cefa4b5d9a6b4031adf759621e
parent90a425c2d38aedbe92a73e9a59b27e98dcc823a2
flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO

commit e59464c735db19619cde2aa331609adb02005f5b upstream.

memset() is called with the wrong address and the kernel panics.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Cc: Patrick McHardy <kaber@trash.net>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/flex_array.c