]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hso: fix soft-lockup
authorAntti Kaijanmäki <antti.kaijanmaki@nomovok.com>
Mon, 23 Nov 2009 18:54:47 +0000 (10:54 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:22:27 +0000 (10:22 -0800)
commitbb969fdc8c7e7675266a3697ad93945428fd89d6
tree6ac59fdba61320cc467c9aa81b66c295edc770e5
parent415cc7b7fe6fd663139da295d7bd2cde556345f0
hso: fix soft-lockup

commit dcfcb256cc23c4436691b0fe677275306699d6a1 upstream.

Fix soft-lockup in hso.c which is triggered on SMP machine when
modem is removed while file descriptor(s) under /dev are still open:

  old version called kref_put() too early which resulted in destroying
  hso_serial and hso_device objects which were still used later on.

Signed-off-by: Antti Kaijanmäki <antti.kaijanmaki@nomovok.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c