summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorDavid Fries <David@Fries.net>2014-01-15 22:29:12 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 15:40:17 -0800
commit6b355b33a64fd6d8ead2b838ec16fb9b551f71e8 (patch)
treeca153aa21c96bd52126689536b3442f95256a2ee /mm
parent8a7206a89f85c8439561b0eff85bb9440a2e97a9 (diff)
downloadlinux-6b355b33a64fd6d8ead2b838ec16fb9b551f71e8.tar.gz
linux-6b355b33a64fd6d8ead2b838ec16fb9b551f71e8.tar.bz2
linux-6b355b33a64fd6d8ead2b838ec16fb9b551f71e8.zip
w1: fix w1_send_slave dropping a slave id
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> Cc: stable@vger.kernel.org Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions