ocfs2_dlmfs: Fix math error when reading LVB.
authorJoel Becker <joel.becker@oracle.com>
Fri, 23 Apr 2010 22:24:59 +0000 (15:24 -0700)
committerJoel Becker <joel.becker@oracle.com>
Fri, 23 Apr 2010 22:24:59 +0000 (15:24 -0700)
commita36d515c7a2dfacebcf41729f6812dbc424ebcf0
tree4ff912d4f3c8697eb19beaed2d9b8cb9c551457b
parentc21a534e2f24968cf74976a4e721ac194db30ded
ocfs2_dlmfs: Fix math error when reading LVB.

When asked for a partial read of the LVB in a dlmfs file, we can
accidentally calculate a negative count.

Reported-by: Dan Carpenter <error27@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlmfs/dlmfs.c