|
@@ -270,15 +270,10 @@ static int hci_uart_send_frame(struct sk_buff *skb)
|
|
*/
|
|
*/
|
|
static int hci_uart_tty_open(struct tty_struct *tty)
|
|
static int hci_uart_tty_open(struct tty_struct *tty)
|
|
{
|
|
{
|
|
- struct hci_uart *hu = (void *) tty->disc_data;
|
|
|
|
|
|
+ struct hci_uart *hu;
|
|
|
|
|
|
BT_DBG("tty %p", tty);
|
|
BT_DBG("tty %p", tty);
|
|
|
|
|
|
- /* FIXME: This btw is bogus, nothing requires the old ldisc to clear
|
|
|
|
- the pointer */
|
|
|
|
- if (hu)
|
|
|
|
- return -EEXIST;
|
|
|
|
-
|
|
|
|
/* Error if the tty has no write op instead of leaving an exploitable
|
|
/* Error if the tty has no write op instead of leaving an exploitable
|
|
hole */
|
|
hole */
|
|
if (tty->ops->write == NULL)
|
|
if (tty->ops->write == NULL)
|