From: Lukas Czerner Date: Mon, 22 Oct 2012 22:01:19 +0000 (-0400) Subject: ext4: Avoid underflow in ext4_trim_fs() X-Git-Tag: v3.7-rc3~47^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5de35e8d5c02d271c20e18337e01bc20e6ef472e;p=pandora-kernel.git ext4: Avoid underflow in ext4_trim_fs() Currently if len argument in ext4_trim_fs() is smaller than one block, the 'end' variable underflow. Avoid that by returning EINVAL if len is smaller than file system block. Also remove useless unlikely(). Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" Cc: stable@vger.kernel.org --- Reading git-diff-tree failed