|
@@ -3976,7 +3976,7 @@ block_til_ready(struct tty_struct *tty, struct file * filp,
|
|
|
*/
|
|
|
if (tty_hung_up_p(filp) ||
|
|
|
(info->flags & ASYNC_CLOSING)) {
|
|
|
- wait_event_interruptible_tty(info->close_wait,
|
|
|
+ wait_event_interruptible_tty(tty, info->close_wait,
|
|
|
!(info->flags & ASYNC_CLOSING));
|
|
|
#ifdef SERIAL_DO_RESTART
|
|
|
if (info->flags & ASYNC_HUP_NOTIFY)
|
|
@@ -4115,7 +4115,7 @@ rs_open(struct tty_struct *tty, struct file * filp)
|
|
|
*/
|
|
|
if (tty_hung_up_p(filp) ||
|
|
|
(info->flags & ASYNC_CLOSING)) {
|
|
|
- wait_event_interruptible_tty(info->close_wait,
|
|
|
+ wait_event_interruptible_tty(tty, info->close_wait,
|
|
|
!(info->flags & ASYNC_CLOSING));
|
|
|
#ifdef SERIAL_DO_RESTART
|
|
|
return ((info->flags & ASYNC_HUP_NOTIFY) ?
|