diff options
author | Roman Tereshonkov <roman.tereshonkov@nokia.com> | 2011-11-29 11:49:18 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 19:18:11 +0100 |
commit | 556f063580db2953a7e53cd46b47724246320f60 (patch) | |
tree | f79998a3fd20823c31d8917b758a67bc60af1b17 /security/keys/Makefile | |
parent | jffs2: fix up error handling for insert_inode_locked (diff) | |
download | linux-556f063580db2953a7e53cd46b47724246320f60.tar.xz linux-556f063580db2953a7e53cd46b47724246320f60.zip |
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: stable@kernel.org
Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'security/keys/Makefile')
0 files changed, 0 insertions, 0 deletions