hfsplus: fix potential overflow in hfsplus_file_truncate()
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / hfsplus / extents.c
index a94f0f7..fe0a762 100644 (file)
@@ -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,