diff options
author | Vyacheslav Dubeyko <slava@dubeyko.com> | 2013-04-17 18:58:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-17 19:10:45 -0400 |
commit | 12f267a20aecf8b84a2a9069b9011f1661c779b4 (patch) | |
tree | 3cc705f2ab1fb7bde1bafc635fe0fb9ea6fbc10a /fs/hfsplus | |
parent | 472d326677db37625903265428582694394d2df7 (diff) |
hfsplus: fix potential overflow in hfsplus_file_truncate()
Change a u32 to loff_t hfsplus_file_truncate().
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r-- | fs/hfsplus/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/extents.c b/fs/hfsplus/extents.c index a94f0f779d5e..fe0a76213d9e 100644 --- a/fs/hfsplus/extents.c +++ b/fs/hfsplus/extents.c | |||
@@ -533,7 +533,7 @@ void hfsplus_file_truncate(struct inode *inode) | |||
533 | struct address_space *mapping = inode->i_mapping; | 533 | struct address_space *mapping = inode->i_mapping; |
534 | struct page *page; | 534 | struct page *page; |
535 | void *fsdata; | 535 | void *fsdata; |
536 | u32 size = inode->i_size; | 536 | loff_t size = inode->i_size; |
537 | 537 | ||
538 | res = pagecache_write_begin(NULL, mapping, size, 0, | 538 | res = pagecache_write_begin(NULL, mapping, size, 0, |
539 | AOP_FLAG_UNINTERRUPTIBLE, | 539 | AOP_FLAG_UNINTERRUPTIBLE, |