From 9e3b1d8e3d5d135ac7be43f6710b7a67b569c292 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Tue, 22 Jan 2008 15:54:54 +0100 Subject: [PATCH] USB: stop abuse of intfdata in cypress_m8 this driver uses usb_get_intfdata() == NULL as a test for disconnect(). You must not do that as this races with probe(). By the time you test your erstwhile interface may already be somebody else's interface. This fixes the close() method of cypress_m8 to use the recently introduced flag and use locking against disconnect() where required in close(). Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed