W1: abort search early on on exit
authorDavid Fries <david@fries.net>
Thu, 16 Oct 2008 05:04:39 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:49 +0000 (11:21 -0700)
commit0d671b272af9eb06260ab3fd210d454e98dd4216
tree9a50a3ebb351ff869ce1ba71333b59fa4fc17f48
parentc30c9b15187e977ab5928f7276e9dfcd8d6f9460
W1: abort search early on on exit

Early abort if the master driver or the hardware goes away in the middle
of a bus search operation.  The alternative is to spam the print buffer up
to 64*64 times with read errors in the case of USB.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1.c