[lkml]   [2018]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3] mtd: spi-nor: cast to u64 to avoid uint overflows
On Wed, 28 Nov 2018 at 09:03, Huijin Park <> wrote:
> From: "huijin.park" <>
> 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 <>

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

Something like
git config --global "John Foo"

 \ /
  Last update: 2018-12-03 09:13    [W:0.069 / U:6.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site