diff options
Diffstat (limited to 'drivers/tty/tty_buffer.c')
-rw-r--r-- | drivers/tty/tty_buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index 3605103fc1ac..75661641f5fe 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c | |||
@@ -557,3 +557,9 @@ int tty_buffer_set_limit(struct tty_port *port, int limit) | |||
557 | return 0; | 557 | return 0; |
558 | } | 558 | } |
559 | EXPORT_SYMBOL_GPL(tty_buffer_set_limit); | 559 | EXPORT_SYMBOL_GPL(tty_buffer_set_limit); |
560 | |||
561 | /* slave ptys can claim nested buffer lock when handling BRK and INTR */ | ||
562 | void tty_buffer_set_lock_subclass(struct tty_port *port) | ||
563 | { | ||
564 | lockdep_set_subclass(&port->buf.lock, TTY_LOCK_SLAVE); | ||
565 | } | ||