From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43585 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbdHAVDl (ORCPT ); Tue, 1 Aug 2017 17:03:41 -0400 Date: Tue, 1 Aug 2017 14:03:37 -0700 From: Greg KH To: Chris Brandt Cc: stable@vger.kernel.org, Geert Uytterhoeven , Wolfram Sang , Ulf Hansson Subject: Re: [PATCH] mmc: tmio-mmc: fix bad pointer math Message-ID: <20170801210337.GA9762@kroah.com> References: <20170801204334.106262-1-chris.brandt@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170801204334.106262-1-chris.brandt@renesas.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Aug 01, 2017 at 03:43:34PM -0500, Chris Brandt wrote: > commit 9c284c41c0886f09e75c323a16278b6d353b0b4a upstream. > > The existing code gives an incorrect pointer value. > The buffer pointer 'buf' was of type unsigned short *, and 'count' was a > number in bytes. A cast of buf should have been used. > > However, instead of casting, just change the code to use u32 pointers. > > Reported-by: Dan Carpenter > Fixes: 8185e51f358a: ("mmc: tmio-mmc: add support for 32bit data port") > Signed-off-by: Chris Brandt > Reviewed-by: Geert Uytterhoeven > Acked-by: Wolfram Sang > Cc: > Signed-off-by: Ulf Hansson > --- > drivers/mmc/host/tmio_mmc_pio.c | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-) What kernel tree(s) is this for? thanks, greg k-h