From: Arnd Bergmann Date: Tue, 1 Jun 2010 20:53:02 +0000 (+0200) Subject: tty: never hold BTM while getting tty_mutex X-Git-Tag: v2.6.36-rc1~294^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ba3dc3143d94bbe935722aa17fa516b232bc83;p=pandora-kernel.git tty: never hold BTM while getting tty_mutex tty_mutex is never taken with the BTM held, except for two corner cases that are worked around here. We give up the BTM before calling tty_release() in the error path of tty_open(). Similarly, we reorder the locking in ptmx_open() to get tty_mutex before the BTM. Signed-off-by: Arnd Bergmann Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed