From: Neil Brown Date: Thu, 12 Apr 2007 06:28:44 +0000 (-0700) Subject: [PATCH] md: fix calculation for size of filemap_attr array in md/bitmap X-Git-Tag: v2.6.21-rc7~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=505fa2c4a2f125a70951926dfb22b9cf273994f1;p=pandora-kernel.git [PATCH] md: fix calculation for size of filemap_attr array in md/bitmap If 'num_pages' were ever 1 more than a multiple of 8 (32bit platforms) or of 16 (64 bit platforms). filemap_attr would be allocated one 'unsigned long' shorter than required. We need a round-up in there. Signed-off-by: Neil Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed