summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/oprofile_impl.h
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2007-01-28 00:41:49 +0100
committerPaul Mackerras <paulus@samba.org>2007-02-07 04:03:19 +0100
commit4942bd80e83d13bf394df4a8109bee39d861820f (patch)
tree894ec8480e5dbffe59fe8fa798c50f44d174a8b1 /include/asm-powerpc/oprofile_impl.h
parent[POWERPC] ps3: ps3_defconfig updates (diff)
downloadlinux-4942bd80e83d13bf394df4a8109bee39d861820f.tar.xz
linux-4942bd80e83d13bf394df4a8109bee39d861820f.zip
[POWERPC] Fix array indexing error in rheap grow()
The grow() function in the rheap library allocates a larger array of blocks, copies the contents of the old blocks array to the newly allocated array and fixes the list_head pointers after the copy. At the end, the new blocks must be enqueued to the empty_list of the rh_info_t structure. This patch fixes a bug where the code was indexing past the end of the array when enqueueing blocks. The UCC ethernet driver, which uses the rheap allocator, experiences kernel panics because of this bug. Signed-off-by: Ionut Nicu <ionut.nicu@freescale.com> Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/oprofile_impl.h')
0 files changed, 0 insertions, 0 deletions