hso: fix refcounting on the ttyHSx devices
authorOlivier Blin <blino@mandriva.com>
Fri, 8 Aug 2008 19:01:41 +0000 (12:01 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 14 Aug 2008 08:43:46 +0000 (04:43 -0400)
commit6d558a52ba295fc1c281c671d7daab2f74ddb4f2
treed16d3ad63cc9e0b5def6e313ac3657959597a4ff
parentadd477df674db00377d9a4dc0d9b553ce79bc06d
hso: fix refcounting on the ttyHSx devices

The references on ttyHSx devices were not decremented correctly when
the tty was closed. The helper freeing the serial devices was never
called because of that, and the module left some dangling sysfs
devices after being unloaded.

Signed-off-by: Olivier Blin <blino@mandriva.com>
Cc: Jari Tenhunen <jari.tenhunen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/usb/hso.c