From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933155Ab1CWXQV (ORCPT ); Wed, 23 Mar 2011 19:16:21 -0400 Received: from kroah.org ([198.145.64.141]:60490 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933037Ab1CWXQU (ORCPT ); Wed, 23 Mar 2011 19:16:20 -0400 Date: Wed, 23 Mar 2011 15:50:01 -0700 From: Greg KH To: "Michael S. Tsirkin" Cc: stable@kernel.org, Christoph Lameter , linux-pci@vger.kernel.org, Michal Schmidt , linux-kernel@vger.kernel.org, Jesse Barnes , Tejun Heo Subject: Re: [stable] [PATCH stable] PCI: return correct value when writing to the "reset" attribute Message-ID: <20110323225001.GD27334@kroah.com> References: <20110323122103.GA24976@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110323122103.GA24976@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 23, 2011 at 02:21:03PM +0200, Michael S. Tsirkin wrote: > commit 447c5dd7338638f526e9bcf7dcf69b4da5835c7d > Author: Michal Schmidt > Date: Tue May 11 11:44:54 2010 +0200 > > A successful write() to the "reset" sysfs attribute should return the > number of bytes written, not 0. Otherwise userspace (bash) retries the > write over and over again. > > Acked-by: Michael S. Tsirkin > Acked-by: Greg Kroah-Hartman > Signed-off-by: Michal Schmidt > Signed-off-by: Jesse Barnes > > Applies without changes to all of 2.6.32,2.6.33,2.6.34 Applied to .32 and .33 now, thanks. greg k-h