hso: fix soft-lockup
authorAntti Kaijanmäki <antti.kaijanmaki@nomovok.com>
Mon, 23 Nov 2009 18:54:47 +0000 (10:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2009 18:54:47 +0000 (10:54 -0800)
commitdcfcb256cc23c4436691b0fe677275306699d6a1
tree15df747529bf1da7c646e877675b202797508a21
parent9ce673d5e919966efc1ef5adf20248e6ecc62724
hso: fix soft-lockup

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