From: Bob Copeland Date: Sat, 6 Sep 2008 21:51:53 +0000 (-0400) Subject: omfs: check bounds on block numbers before passing to sb_bread X-Git-Tag: v2.6.36-rc1~302^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f068272cb2f134a194b93e94a8e0672bfce48cd8;p=pandora-kernel.git omfs: check bounds on block numbers before passing to sb_bread In case of filesystem corruption, passing unchecked block numbers into sb_bread can result in an infinite loop in __getblk(). Introduce a wrapper function omfs_sbread() to check the block numbers and to also perform the clus_to_blk() scaling. Signed-off-by: Bob Copeland --- Reading git-diff-tree failed