From: David Fries Date: Thu, 16 Oct 2008 05:04:50 +0000 (-0700) Subject: W1: w1_slave_read_id read bug, use device_attribute X-Git-Tag: v2.6.28-rc1~322 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07e003417b88deac4b887c98f499fc3b01bc8df0;p=pandora-kernel.git W1: w1_slave_read_id read bug, use device_attribute Fix bug reading the id sysfs file. If less than the full 8 bytes were read, the next read would start at the first byte instead of continuing. It needed the offset added to memcpy, or the better solution was to replace it with the device attribute instead of bin attribute. Signed-off-by: David Fries Signed-off-by: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed