From: Franck Bui-Huu Date: Wed, 14 Jun 2006 08:29:21 +0000 (+0200) Subject: [PATCH] USB: gadget-serial: fix a deadlock when closing the serial device X-Git-Tag: v2.6.18-rc1~858^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=943e1b4d60dc7acfabe2ebad31189bcb3b853688;p=pandora-kernel.git [PATCH] USB: gadget-serial: fix a deadlock when closing the serial device When closing the device, the driver acquires/release twice the port lock before/after waiting for the data to be completely sent. Therefore it will dead lock. This patch fixes it and also uses the generic scheduler services for waiting for an event. Signed-off-by: Franck Bui-Huu Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed