summaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters/ds2490.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-08-26 00:59:04 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-26 01:25:33 +0200
commit58299449257566613f58dcfb757f0ba4a377987a (patch)
tree785b783e2638ae5482a75d15ef4f4e2a2b9790cc /drivers/w1/masters/ds2490.c
parentalpha: unbreak osf_setsysinfo(SSI_NVPAIRS, [SSIN_UACPROC, UAC_SIGBUS]) (diff)
downloadlinux-58299449257566613f58dcfb757f0ba4a377987a.tar.xz
linux-58299449257566613f58dcfb757f0ba4a377987a.zip
w1: fix for loop in w1_f29_remove_slave()
The for loop was looking for i <= 0 instead of i >= 0 so this function never did anything. Also we started with i = NB_SYSFS_BIN_FILES instead of "NB_SYSFS_BIN_FILES - 1" which is an off by one bug. Reported-by: Bojan Prtvar <prtvar.b@gmail.com> Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jean-Franois Dagenais <dagenaisj@sonatest.com> Cc: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/w1/masters/ds2490.c')
0 files changed, 0 insertions, 0 deletions