w1: fix w1_remove_master_device() searching
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Wed, 22 Aug 2007 21:01:51 +0000 (14:01 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 23 Aug 2007 02:52:46 +0000 (19:52 -0700)
commit59d9445e851976d973a5a4009f80a3d55959d231
tree36eb5a8f9171fe410575ca996d63eb86abbac915
parenta89182c76e54134081cfec6409df06731c5cb98f
w1: fix w1_remove_master_device() searching

In case bus master driver provided bogus value as its private data, search
can be incorrect.  Problem found by Adrian Bunk.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1_int.c