diff options
author | Brijesh Singh <brijesh.s.singh@gmail.com> | 2007-07-05 05:37:35 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-18 09:57:34 -0400 |
commit | 2f176f79877937082ce052977e552a75e23a73d1 (patch) | |
tree | c7f8eb96bac676fe06d77338e44a0da17810fce3 /drivers/mtd/ubi/io.c | |
parent | 84a925806210e002fab29966c09b9c92f382a79d (diff) |
UBI: fix signed-unsigned multiplication
There is signed multiplication assigned to unsigned ei.addr in io.c.
This causes wrong addresses for big multiplication.This patch solves the
problem.
Signed-off-by: Brijesh Singh <brijesh.s.singh@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/io.c')
-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; |