Re: [PATCH v2] mtd: change len type from signed to unsigned type

2018-11-28 Thread Huijin Park
Hi Miquèl, On Thu, Nov 15, 2018 at 6:29 PM Miquel Raynal wrote: > > Hi Huijin, > > Huijin Park wrote on Thu, 15 Nov 2018 > 00:07:10 -0500: > > > From: "huijin.park" > > > > This patch casts the "len" parameter to an unsigned int. > > The callers of erase_write() pass the "len" parameter as unsi

Re: [PATCH v2] mtd: change len type from signed to unsigned type

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 00:07:10 -0500 Huijin Park wrote: > From: "huijin.park" > > This patch casts the "len" parameter to an unsigned int. Hm, that's not really what this patch actually. Actually it avoids the cast from an int to an unsigned int. > The callers of erase_write() pass the "len" pa

Re: [PATCH v2] mtd: change len type from signed to unsigned type

2018-11-15 Thread Miquel Raynal
Hi Huijin, Huijin Park wrote on Thu, 15 Nov 2018 00:07:10 -0500: > From: "huijin.park" > > This patch casts the "len" parameter to an unsigned int. > The callers of erase_write() pass the "len" parameter as unsigned int. Indeed. Perhaps it is worth backporting this patch to a stable releases?

[PATCH v2] mtd: change len type from signed to unsigned type

2018-11-14 Thread Huijin Park
From: "huijin.park" This patch casts the "len" parameter to an unsigned int. The callers of erase_write() pass the "len" parameter as unsigned int. Signed-off-by: huijin.park --- drivers/mtd/mtdblock.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtdblock.