Re: [PATCH v3] mtd: spi-nor: cast to u64 to avoid uint overflows

From: RafaÅ MiÅecki
Date: Mon Dec 03 2018 - 03:12:45 EST


On Wed, 28 Nov 2018 at 09:03, Huijin Park <huijin.park@xxxxxxxxxxx> wrote:
> From: "huijin.park" <huijin.park@xxxxxxxxxxx>
>
> The "params->size" is defined as "u64".
> And "info->sector_size" and "info->n_sectors" are defined as
> unsigned int and u16.
> Thus, u64 data might have strange data(loss data) if the result
> overflows an unsigned int.
> This patch casts "info->sector_size" to an u64.
>
> Signed-off-by: huijin.park <huijin.park@xxxxxxxxxxx>

You may want to adjust your git's "user.name" config to avoid
"malforming" your name (From and Signed-off-by) in the further
contributions :)

Something like
git config --global user.name "John Foo"