From: Michal Schmidt Date: Tue, 11 May 2010 09:44:54 +0000 (+0200) Subject: PCI: return correct value when writing to the "reset" attribute X-Git-Tag: v2.6.35-rc1~433^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=447c5dd7338638f526e9bcf7dcf69b4da5835c7d;p=pandora-kernel.git PCI: return correct value when writing to the "reset" attribute 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 --- Reading git-diff-tree failed