From: Kuninori Morimoto Subject: [PATCH 0/2] mmc: cast to avoid unexpected error Date: Tue, 14 Apr 2015 04:06:49 +0000 Message-ID: <87sic3bbhd.wl%kuninori.morimoto.gx@renesas.com> References: <87wq1n5bht.wl%kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Return-path: Received: from relmlor3.renesas.com ([210.160.252.173]:48572 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751434AbbDNEGz (ORCPT ); Tue, 14 Apr 2015 00:06:55 -0400 In-Reply-To: <87wq1n5bht.wl%kuninori.morimoto.gx@renesas.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Ulf Hansson Cc: ryusuke.sakato.bx@renesas.com, yoshihiro.shimoda.uh@renesas.com, hiroyuki.yokoyama.vx@renesas.com, takeshi.kihara.df@renesas.com, Jaehoon Chung , Chris Ball , Seungwon Jeon , =?ISO-8859-1?Q?=22Gr=E9gory_Soutad?= =?ISO-8859-1?Q?=E9=22?= , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Hi Ulf These are non RFC version 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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html