git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79f1ba4
)
ext4: Avoid underflow in ext4_trim_fs()
author
Lukas Czerner
<lczerner@redhat.com>
Mon, 22 Oct 2012 22:01:19 +0000
(18:01 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 22 Oct 2012 22:01:19 +0000
(18:01 -0400)
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 <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
No differences found