Files
i2som-imx-linux/kernel
Li Zefan f596ca6c42 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: Ben Hutchings <ben@decadent.org.uk>
2013-05-13 15:02:11 +01:00
..
2011-07-26 16:49:45 -07:00
2013-05-13 15:02:11 +01:00
2011-09-23 12:05:29 +05:30
2012-10-10 03:30:50 +01:00
2013-03-06 03:24:28 +00:00
2013-01-03 03:33:08 +00:00
2012-07-12 04:31:59 +01:00
2011-10-31 17:30:44 -07:00
2011-08-12 16:21:35 -05:00
2011-09-19 17:04:37 -07:00