summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorDavid Fries <David@Fries.net>2014-01-15 22:29:12 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-06 07:55:28 -0700
commit1a8be0fe6d1f30cbad40c9ca1a5ef7c080f625a7 (patch)
tree8a3e36073e88b92ac8ed1ff550db6f9a82c6057a /drivers/staging
parent81a6cff47303642deafb3f1ac2a7ac33e04bbae2 (diff)
w1: fix w1_send_slave dropping a slave id
commit 6b355b33a64fd6d8ead2b838ec16fb9b551f71e8 upstream. Previous logic, if (avail > 8) { store slave; return; } send data; clear; The logic error is, if there isn't space send the buffer and clear, but the slave wasn't added to the now empty buffer loosing that slave id. It also should have been "if (avail >= 8)" because when it is 8, there is space. Instead, if there isn't space send and clear the buffer, then there is always space for the slave id. Signed-off-by: David Fries <David@Fries.net> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
0 files changed, 0 insertions, 0 deletions