Files
i2som-imx-linux/kernel
Li Zefan 97630ecdbd cgroup: fix an off-by-one bug which may trigger BUG_ON()
commit 3ac1707a13 upstream.

The 3rd parameter of flex_array_prealloc() is the number of elements,
not the index of the last element.

The effect of the bug is, when opening cgroup.procs, a flex array will
be allocated and all elements of the array is allocated with
GFP_KERNEL flag, but the last one is GFP_ATOMIC, and if we fail to
allocate memory for it, it'll trigger a BUG_ON().

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-07 19:51:56 -07:00
..
2012-03-28 18:30:03 +01:00
2012-03-29 19:52:46 +08:00
2012-12-17 10:37:46 -08:00
2012-07-16 09:04:42 -07:00
2012-03-28 18:30:03 +01:00
2012-03-15 18:17:55 -07:00