Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751344AbbD3Vim (ORCPT ); Thu, 30 Apr 2015 17:38:42 -0400 Received: from mail-wg0-f65.google.com ([74.125.82.65]:36776 "EHLO mail-wg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbbD3Vik (ORCPT ); Thu, 30 Apr 2015 17:38:40 -0400 MIME-Version: 1.0 In-Reply-To: <201504302043.11118.marex@denx.de> References: <55132b4496e7fe73f949186c0f140f3e4fd4e2c7.1430403750.git.hramrach@gmail.com> <201504302043.11118.marex@denx.de> From: Michal Suchanek Date: Thu, 30 Apr 2015 23:37:58 +0200 Message-ID: Subject: Re: [PATCH 1/3] MTD: m25p80: fix write return value. To: Marek Vasut Cc: linux-sunxi , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , David Woodhouse , Brian Norris , Huang Shijie , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Ben Hutchings , Alison Chaiken , Mika Westerberg , =?UTF-8?B?QmVhbiBIdW8g6ZyN5paM5paMIChiZWFuaHVvKQ==?= , "grmoore@altera.com" , devicetree , Linux Kernel Mailing List , linux-mtd@lists.infradead.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 967 Lines: 27 On 30 April 2015 at 20:43, Marek Vasut wrote: > On Thursday, April 30, 2015 at 03:33:47 PM, Michal Suchanek wrote: >> The size of written data was added to user supplied value rather than >> written at the provided address. > > You might want to work on the commit message a little, something like > the following, but feel free to reword as seen fit. > > The 'retlen' points to a variable representing the number of data bytes > written/read (see include/linux/mtd/mtd.h) by the current invocation of > the function. This variable must be set, not incremented. > > Otherwise, the patch is correct I believe: > > Acked-by: Marek Vasut > ok, I will send an updated version. Thanks Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/