diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/ubi/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index 20e297ad7f6b..81008ab5d793 100644 --- a/drivers/mtd/ubi/io.c +++ b/drivers/mtd/ubi/io.c | |||
@@ -298,7 +298,7 @@ retry: | |||
298 | memset(&ei, 0, sizeof(struct erase_info)); | 298 | memset(&ei, 0, sizeof(struct erase_info)); |
299 | 299 | ||
300 | ei.mtd = ubi->mtd; | 300 | ei.mtd = ubi->mtd; |
301 | ei.addr = pnum * ubi->peb_size; | 301 | ei.addr = (loff_t)pnum * ubi->peb_size; |
302 | ei.len = ubi->peb_size; | 302 | ei.len = ubi->peb_size; |
303 | ei.callback = erase_callback; | 303 | ei.callback = erase_callback; |
304 | ei.priv = (unsigned long)&wq; | 304 | ei.priv = (unsigned long)&wq; |