diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-09-19 22:13:12 +0200 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 22:13:12 +0200 |
commit | d13549f804d2965a9f279a8ff867f35d949572c8 (patch) | |
tree | f7e1a6781fe38ffe845e0cfe104e56a0efa309bb /net/bluetooth/hci_event.c | |
parent | tty: icom: bit and/or confusion? (diff) | |
download | linux-d13549f804d2965a9f279a8ff867f35d949572c8.tar.xz linux-d13549f804d2965a9f279a8ff867f35d949572c8.zip |
cyclades: add tty refcounting
While this is not problem for Y card handlers (they are protected
by card_lock), Z handlers and other functions may dereference NULL
at any point after hangup/close. Even if (tty == NULL) was already
performed in the handler.
Note that it's not an issue for Y cards just for now. After
switching to tty_port_close_* et al. this will be a problem. So
add refcounting to them all.
Also proc .show doesn't take a tty reference and it should (along
with a ldisc one).
While at it and changing prototypes (adding tty param), prepend
cy_ to functions which don't have it yet.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/bluetooth/hci_event.c')
0 files changed, 0 insertions, 0 deletions