aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRoman Tereshonkov <[email protected]>2011-11-29 12:49:18 +0200
committerDavid Woodhouse <[email protected]>2012-01-09 18:18:11 +0000
commit556f063580db2953a7e53cd46b47724246320f60 (patch)
treef79998a3fd20823c31d8917b758a67bc60af1b17 /tools/perf/scripts/python
parent53466710202900ce49e471f480cac11275e1d0c4 (diff)
mtdoops: fix the oops_page_used array size
The array of unsigned long pointed by oops_page_used is allocated by vmalloc which requires the size to be in bytes. BITS_PER_LONG is equal to 32. If we want to allocate memory for 32 pages with one bit per page then 32 / BITS_PER_LONG is equal to 1 byte that is 8 bits. To fix it we need to multiply the result by sizeof(unsigned long) equal to 4. Cc: [email protected] Signed-off-by: Roman Tereshonkov <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions