]> git.baikalelectronics.ru Git - kernel.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)
commit1027cd201c2d8b0c3699a71cfd5728e4863c563a
tree49ac34f8d779a706a58414c5f64e317bc1b323c2
parentb38ed2daf86022c13c103ed599b5ea97d3694e23
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