From: Bjørn Mork Date: Mon, 16 Jan 2012 14:11:57 +0000 (+0100) Subject: USB: cdc-wdm: call wake_up_all to allow driver to shutdown on device removal X-Git-Tag: v3.3-rc2~5^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62aaf24dc125d7c55c93e313d15611f152b030c7;p=pandora-kernel.git USB: cdc-wdm: call wake_up_all to allow driver to shutdown on device removal wdm_disconnect() waits for the mutex held by wdm_read() before calling wake_up_all(). This causes a deadlock, preventing device removal to complete. Do the wake_up_all() before we start waiting for the locks. Signed-off-by: Bjørn Mork Cc: Oliver Neukum Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed