From: Lars Ellenberg Date: Tue, 9 Nov 2010 13:12:10 +0000 (+0100) Subject: drbd: fix potential wrap of 32bit oos:%lu display in /proc/drbd X-Git-Tag: v2.6.39-rc1~37^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18edc0b9d7dac2f74117a0bdb98f2e705eb74d82;p=pandora-kernel.git drbd: fix potential wrap of 32bit oos:%lu display in /proc/drbd When converting bits (4k resolution, still) to kB, we shift left. If it was a large number of bits on a 32bit box (>= 4 TiB storage), we may wrap the 32bit unsigned long base type, resulting in incorrect display. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed