diff options
Diffstat (limited to 'drivers/misc/ti-st/tty_hci.c')
| -rw-r--r-- | drivers/misc/ti-st/tty_hci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/ti-st/tty_hci.c b/drivers/misc/ti-st/tty_hci.c index 42009bc458c..d1e618fe050 100644 --- a/drivers/misc/ti-st/tty_hci.c +++ b/drivers/misc/ti-st/tty_hci.c @@ -147,6 +147,9 @@ int hci_tty_open(struct inode *inod, struct file *file) file->private_data = hst; + skb_queue_head_init(&hst->rx_list); + init_waitqueue_head(&hst->data_q); + for (i = 0; i < MAX_BT_CHNL_IDS; i++) { ti_st_proto[i].priv_data = hst; ti_st_proto[i].max_frame_size = 1026; @@ -212,9 +215,6 @@ done: } } - skb_queue_head_init(&hst->rx_list); - init_waitqueue_head(&hst->data_q); - return 0; error: |