]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO
authorChangli Gao <xiaosuo@gmail.com>
Fri, 23 Apr 2010 17:17:45 +0000 (13:17 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Apr 2010 18:31:24 +0000 (11:31 -0700)
commite59464c735db19619cde2aa331609adb02005f5b
tree00849f207341841a7f5190c270fa0f82dcbda587
parent46da27664887fb95cedba53eafcf876de812c8c1
flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/flex_array.c