diff options
author | Gianluca Anzolin <gianluca@sottospazio.it> | 2013-07-29 17:08:10 +0200 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-08-21 16:47:06 +0200 |
commit | 54b926a1434e817ca84cb090f36b56763e192470 (patch) | |
tree | 4ab276833fd667f8252925f14bb03dd61f5e1903 /fs | |
parent | ebe937f74b8a72cf3ceeae5c2194a160bb092901 (diff) |
Bluetooth: Move the tty initialization and cleanup out of open/close
Move the tty_struct initialization from rfcomm_tty_open() to
rfcomm_tty_install() and do the same for the cleanup moving the code from
rfcomm_tty_close() to rfcomm_tty_cleanup().
Add also extra error handling in rfcomm_tty_install() because, unlike
.open()/.close(), .cleanup() is not called if .install() fails.
Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions