Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2f176f79877937082ce052977e552a75e23a73d1
Commit:     2f176f79877937082ce052977e552a75e23a73d1
Parent:     84a925806210e002fab29966c09b9c92f382a79d
Author:     Brijesh Singh <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 5 15:07:35 2007 +0530
Committer:  Artem Bityutskiy <[EMAIL PROTECTED]>
CommitDate: Wed Jul 18 16:57:34 2007 +0300

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Artem Bityutskiy <[EMAIL PROTECTED]>
---
 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 20e297a..81008ab 100644
--- a/drivers/mtd/ubi/io.c
+++ b/drivers/mtd/ubi/io.c
@@ -298,7 +298,7 @@ retry:
        memset(&ei, 0, sizeof(struct erase_info));
 
        ei.mtd      = ubi->mtd;
-       ei.addr     = pnum * ubi->peb_size;
+       ei.addr     = (loff_t)pnum * ubi->peb_size;
        ei.len      = ubi->peb_size;
        ei.callback = erase_callback;
        ei.priv     = (unsigned long)&wq;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to