lkml.org 
[lkml]   [2015]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 0/2 v2] mmc: cast to avoid unexpected error
From
On 11 May 2015 at 09:34, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> Hi Ulf
>
> These are v2 of mmc data cast patches which were posted in
> Subject: [PATCH 0/2][RFC] mmc: cast to avoid unexpected error
> Date: Wed, 8 Apr 2015 07:32:35 +0000
>
> These 2 patches adds cast to avoid unexpected error.
> It tries copy to u64 without cast.
> The data will be 0xfff... if last bit was 1.
> These are reported by coverity tool.
> I'm happy if someone tests it, or can get deep review.
>
> Kuninori Morimoto (2):
> mmc: cast u8 to unsigned long long to avoid unexpected error
> mmc: cast unsigned int to typeof(sector_t) to avoid unexpected error
>
> drivers/mmc/card/block.c | 2 +-
> drivers/mmc/core/mmc.c | 6 ++++--
> 2 files changed, 5 insertions(+), 3 deletions(-)

Thanks, applied!

Kind regards
Uffe


\
 
 \ /
  Last update: 2015-05-11 12:41    [W:0.042 / U:1.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site