diff options
author | Bob Copeland <me@bobcopeland.com> | 2008-09-06 23:51:53 +0200 |
---|---|---|
committer | Bob Copeland <me@bobcopeland.com> | 2010-07-10 20:37:06 +0200 |
commit | f068272cb2f134a194b93e94a8e0672bfce48cd8 (patch) | |
tree | c6a2a67951646eee3d040b732b384fa5c98fe78c /crypto/gcm.c | |
parent | omfs: fix memory leak (diff) | |
download | linux-f068272cb2f134a194b93e94a8e0672bfce48cd8.tar.xz linux-f068272cb2f134a194b93e94a8e0672bfce48cd8.zip |
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 <me@bobcopeland.com>
Diffstat (limited to 'crypto/gcm.c')
0 files changed, 0 insertions, 0 deletions