revert android-tegra-2.6.36-honeycomb-mr1-9001adc to v2.6.36
[firefly-linux-kernel-4.4.55.git] / drivers / bluetooth / hci_ldisc.c
index 24fe2f37de8e1e5c160c64088984f1424a33f277..3182186449eee87b0f239fc7e4f190e58f06b669 100755 (executable)
@@ -263,16 +263,9 @@ static int hci_uart_tty_open(struct tty_struct *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
-          hole */
-       if (tty->ops->write == NULL)
-               return -EOPNOTSUPP;
-
        if (!(hu = kzalloc(sizeof(struct hci_uart), GFP_KERNEL))) {
                BT_ERR("Can't allocate control structure");
                return -ENFILE;