The patch titled flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO has been removed from the -mm tree. Its filename was flex_array-fix-the-panic-when-calling-flex_array_alloc-without-__gfp_zero.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO From: Changli Gao <xiaosuo@xxxxxxxxx> memset() is called with the wrong address and the kernel panics. Signed-off-by: Changli Gao <xiaosuo@xxxxxxxxx> Cc: Patrick McHardy <kaber@xxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/flex_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN lib/flex_array.c~flex_array-fix-the-panic-when-calling-flex_array_alloc-without-__gfp_zero lib/flex_array.c --- a/lib/flex_array.c~flex_array-fix-the-panic-when-calling-flex_array_alloc-without-__gfp_zero +++ a/lib/flex_array.c @@ -99,7 +99,7 @@ struct flex_array *flex_array_alloc(int ret->element_size = element_size; ret->total_nr_elements = total; if (elements_fit_in_base(ret) && !(flags & __GFP_ZERO)) - memset(ret->parts[0], FLEX_ARRAY_FREE, + memset(&ret->parts[0], FLEX_ARRAY_FREE, FLEX_ARRAY_BASE_BYTES_LEFT); return ret; } _ Patches currently in -mm which might be from xiaosuo@xxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html