]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
hso: Fix free of mutexes still in use.
authorDenis Joseph Barrow <D.Barow@option.com>
Tue, 25 Nov 2008 08:33:13 +0000 (00:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Nov 2008 08:33:13 +0000 (00:33 -0800)
commit52429eb216385fdc6969c0112ba8b46cffefaaef
tree49ac34f8d779a706a58414c5f64e317bc1b323c2
parent89930b7b5e3e9bfe9c6ec5e19920451c8f5d9088
hso: Fix free of mutexes still in use.

A new structure hso_mutex_table had to be declared statically
& used as as hso_device mutex_lock(&serial->parent->mutex) etc
is freed in hso_serial_open & hso_serial_close by kref_put while
the mutex is still in use.

This is a substantial change but should make the driver much stabler.

Signed-off-by: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c