From: Lukas Czerner Date: Thu, 11 Oct 2012 10:28:38 +0000 (+0200) Subject: ext3: Avoid underflow of in ext3_trim_fs() X-Git-Tag: v3.7-rc7~30^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae49eeec785025373e28dc24c8351c6bba688d99;p=pandora-kernel.git ext3: Avoid underflow of in ext3_trim_fs() Currently if len argument in ext3_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: Jan Kara --- Reading git-diff-tree failed