From: Joseph Qi Date: Thu, 9 Oct 2014 22:24:56 +0000 (-0700) Subject: ocfs2: fix shift left operations overflow X-Git-Tag: fixes-against-v3.18-rc2~137^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fa05c6e46d76378d4403669ba6ea38364f910ac;p=pandora-kernel.git ocfs2: fix shift left operations overflow ocfs2_inode_info->ip_clusters and ocfs2_dinode->id1.bitmap1.i_total are defined as type u32, so the shift left operations may overflow if volume size is large, for example, 2TB and cluster size is 1MB. Signed-off-by: Joseph Qi Reviewed-by: Alex Chen Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed