git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UBI: fix 64-bit calculations
[pandora-kernel.git]
/
drivers
/
mtd
/
ubi
/
cdev.c
diff --git
a/drivers/mtd/ubi/cdev.c
b/drivers/mtd/ubi/cdev.c
index
34175ec
..
9ac7aa6
100644
(file)
--- a/
drivers/mtd/ubi/cdev.c
+++ b/
drivers/mtd/ubi/cdev.c
@@
-432,7
+432,8
@@
static int vol_cdev_ioctl(struct inode *inode, struct file *file,
break;
}
- rsvd_bytes = vol->reserved_pebs * (ubi->leb_size-vol->data_pad);
+ rsvd_bytes = (long long)vol->reserved_pebs *
+ ubi->leb_size-vol->data_pad;
if (bytes < 0 || bytes > rsvd_bytes) {
err = -EINVAL;
break;