Signed Unsigned multiplication in io.c
Subsystems (2)
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]>
drivers/mtd/ubi/io.c +1 -1
@@ -298,7 +298,7 @@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;
Quoted 5 lines · On Thu, 2007-07-05 at 15:07 +0530, [email protected] wrote:
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]>
Committed, thanks.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)