tty.c (c87985a3ce723995fc7b25e598238d67154108a1) tty.c (89c8d91e31f267703e365593f6bfebb9f6d2ad01)
1/*
2 RFCOMM implementation for Linux Bluetooth stack (BlueZ).
3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation;

--- 691 unchanged lines hidden (view full) ---

700 if (dlc->state == BT_CONNECTED)
701 break;
702
703 if (signal_pending(current)) {
704 err = -EINTR;
705 break;
706 }
707
1/*
2 RFCOMM implementation for Linux Bluetooth stack (BlueZ).
3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation;

--- 691 unchanged lines hidden (view full) ---

700 if (dlc->state == BT_CONNECTED)
701 break;
702
703 if (signal_pending(current)) {
704 err = -EINTR;
705 break;
706 }
707
708 tty_unlock();
708 tty_unlock(tty);
709 schedule();
709 schedule();
710 tty_lock();
710 tty_lock(tty);
711 }
712 set_current_state(TASK_RUNNING);
713 remove_wait_queue(&dev->wait, &wait);
714
715 if (err == 0)
716 device_move(dev->tty_dev, rfcomm_get_device(dev),
717 DPM_ORDER_DEV_AFTER_PARENT);
718

--- 456 unchanged lines hidden ---
711 }
712 set_current_state(TASK_RUNNING);
713 remove_wait_queue(&dev->wait, &wait);
714
715 if (err == 0)
716 device_move(dev->tty_dev, rfcomm_get_device(dev),
717 DPM_ORDER_DEV_AFTER_PARENT);
718

--- 456 unchanged lines hidden ---