]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
usb: cdc-acm: bugfix release()
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 7 Aug 2008 01:41:12 +0000 (18:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Aug 2008 00:32:57 +0000 (17:32 -0700)
commit672c4e1843c54227ff1bdf1fdd96f9c45c56aa85
tree0058bc781a433751b193e92c6fc65dbcda2ef64e
parent1f1ba11b64947051fc32aa15fcccef6463b433f7
usb: cdc-acm: bugfix release()

Bugfixes to the usb_driver_release_interface() usage;

  (a) make sure releasing *either* interface first will release
      the other, instead of insisting it be the control interface;

  (b) remove the recently-added self-deadlock.

(The "fix disconnect bug in cdc-acm" patch was incomplete and incorrect.)

Plus a small "sparse" fix:  rename a local variable so it doesn't
shadow a function parameter.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c