diff options
| author | Roman Tereshonkov <roman.tereshonkov@nokia.com> | 2011-11-29 12:49:18 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-25 16:13:05 -0800 |
| commit | bf77ff6f9796c5664cf63f191da99358198a8e67 (patch) | |
| tree | 6962a01efbcdc01cbbc08f9ccb1cf16fd861b46e /lib/crc32defs.h | |
| parent | b8ed9e5b8c34dc9fb1882669e45b21e3d0194881 (diff) | |
mtdoops: fix the oops_page_used array size
commit 556f063580db2953a7e53cd46b47724246320f60 upstream.
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.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/crc32defs.h')
0 files changed, 0 insertions, 0 deletions
