projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e40813
)
tty: Remove warning in tty_lock_slave()
author
Peter Hurley
<
[email protected]
>
Tue, 30 Dec 2014 12:11:11 +0000
(07:11 -0500)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 9 Jan 2015 22:17:59 +0000
(14:17 -0800)
Commit
2aff5e2bc62db43e05c814461a08aff0fc2b7fe5
('tty: Change
tty lock order to master->slave') added a warning which is broken
and unnecessary now that the tty lock has fixed lock subclasses,
added in commit
2febdb632bb96235b94b8fccaf882a78f8f4b2bb
('tty: Preset lock subclass for nested tty locks').
Reported-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Peter Hurley <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/tty/tty_mutex.c
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_mutex.c
b/drivers/tty/tty_mutex.c
index 4486741190c47d52d8079f360081d99085ce82c4..a872389dc0bcd8309c6138057c90c9c0abf1f089 100644
(file)
--- a/
drivers/tty/tty_mutex.c
+++ b/
drivers/tty/tty_mutex.c
@@
-46,12
+46,8
@@
EXPORT_SYMBOL(tty_unlock);
void __lockfunc tty_lock_slave(struct tty_struct *tty)
{
- if (tty && tty != tty->link) {
- WARN_ON(!mutex_is_locked(&tty->link->legacy_mutex) ||
- !tty->driver->type == TTY_DRIVER_TYPE_PTY ||
- !tty->driver->type == PTY_TYPE_SLAVE);
+ if (tty && tty != tty->link)
tty_lock(tty);
- }
}
void __lockfunc tty_unlock_slave(struct tty_struct *tty)