diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2005-12-29 17:39:57 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-29 09:48:15 -0800 |
commit | 30f04a4efa73dc80bf3f59f3f19ad5a24ac5ac0a (patch) | |
tree | 0f7f165bcf73bf26f782a2b56d05020ea6d4d5b0 /include | |
parent | 3d0a07e3310c947c048bd01d8d0efa0e4fae5ba9 (diff) | |
download | linux-3.10-30f04a4efa73dc80bf3f59f3f19ad5a24ac5ac0a.tar.gz linux-3.10-30f04a4efa73dc80bf3f59f3f19ad5a24ac5ac0a.tar.bz2 linux-3.10-30f04a4efa73dc80bf3f59f3f19ad5a24ac5ac0a.zip |
[PATCH] uml: hostfs - fix possible PAGE_CACHE_SHIFT overflows
Prevent page->index << PAGE_CACHE_SHIFT from overflowing.
There is a casting there, but was added without care, so it's at the wrong
place. Note the extra parens around the shift - "+" is higher precedence than
"<<", leading to a GCC warning which saved all us.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions