From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: re: tty: Change tty lock order to master->slave
Date: Tue, 11 Nov 2014 12:50:11 +0000 [thread overview]
Message-ID: <20141111125011.GA12942@mwanda> (raw)
Hello Peter Hurley,
The patch 2aff5e2bc62d: "tty: Change tty lock order to master->slave"
from Nov 5, 2014, leads to the following static checker warning:
drivers/tty/tty_mutex.c:50 tty_lock_slave()
warn: add some parenthesis here?
drivers/tty/tty_mutex.c
47 void __lockfunc tty_lock_slave(struct tty_struct *tty)
48 {
49 if (tty && tty != tty->link) {
50 WARN_ON(!mutex_is_locked(&tty->link->legacy_mutex) ||
51 !tty->driver->type = TTY_DRIVER_TYPE_PTY ||
52 !tty->driver->type = PTY_TYPE_SLAVE);
! has high precedence than = so those tests are never true. != doesn't
make sense either. Probably the negate operatons are just copy-and-paste
errors?
53 tty_lock(tty);
54 }
55 }
regards,
dan carpenter
next reply other threads:[~2014-11-11 12:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 12:50 Dan Carpenter [this message]
2014-11-11 17:19 ` tty: Change tty lock order to master->slave Peter Hurley
2014-11-11 17:19 ` Peter Hurley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141111125011.GA12942@mwanda \
--to=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.