]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
w1: decrement slave counter only in ->release() callback
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Mon, 14 Jan 2008 08:55:08 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 14 Jan 2008 16:52:22 +0000 (08:52 -0800)
commita2a6c74d34c3ae9de6825767a30ab17f709b59ce
tree573b0117cbb90c87ee6fa0355870949b66159866
parentcb2a52052cebe4716e83b9d2e53682ba00f67de6
w1: decrement slave counter only in ->release() callback

Decrement the slave counter only in ->release() callback instead of both
in ->release() and w1 control.

Patch is based on debug work and preliminary patch made by Henri Laakso.
Henri noticed in debug that this counter becomes negative after w1 slave
device is physically removed.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Henri Laakso <henri.laakso@wapice.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1.c