CAPI: Use kref on capiminor
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:27 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:28 +0000 (16:01 -0800)
commit0159d5491fef4acadd116a989b671e1cd350382f
tree2cc7d1567c18a6629ea641922880ece36ad765de
parente95ac143868752ad30d93068a6fc0b39cf3a1bf4
CAPI: Use kref on capiminor

Install a reference counter for capiminor objects. Acquire it when
obtaining a capiminor from the array during capinc_tty_open, drop it
when closing the tty again. Another reference is held for the hook-up
with capincci.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capi.c