diff options
author | Vyacheslav Dubeyko <slava@dubeyko.com> | 2013-04-17 22:58:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-25 19:51:10 (GMT) |
commit | a7be4986fe82c5a8465749c4a0f3e1367d588b03 (patch) | |
tree | d2c08e4511353029600819a21245db4146638a9b /fs | |
parent | 998f85133fd3067d715050826cf066efd59775f1 (diff) | |
download | linux-fsl-qoriq-a7be4986fe82c5a8465749c4a0f3e1367d588b03.tar.xz |
hfsplus: fix potential overflow in hfsplus_file_truncate()
commit 12f267a20aecf8b84a2a9069b9011f1661c779b4 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-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 eba76ea..fc8ddc1 100644 --- a/fs/hfsplus/extents.c +++ b/fs/hfsplus/extents.c @@ -533,7 +533,7 @@ void hfsplus_file_truncate(struct inode *inode) struct address_space *mapping = inode->i_mapping; struct page *page; void *fsdata; - u32 size = inode->i_size; + loff_t size = inode->i_size; res = pagecache_write_begin(NULL, mapping, size, 0, AOP_FLAG_UNINTERRUPTIBLE, |