um: fix races between line_open() and line_config()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 9 Sep 2011 23:14:02 +0000 (19:14 -0400)
committerRichard Weinberger <richard@nod.at>
Sat, 24 Mar 2012 23:29:53 +0000 (00:29 +0100)
commit31efcebb7d7196adcee73027f513d7c0bf572b47
treec3064342091568bd66f1f5cd85b3c1972ed697da
parentd8c215adbf3901aa7d00a0f17f08d77be689f838
um: fix races between line_open() and line_config()

Pull parse_chan_pair() call into setup_one_line(), under the mutex.
We really don't want open() to succeed before parse_chan_pair() had
been done (or after it has failed, BTW).  We also want "remove con<n>"
to free irqs, etc., same as "config con<n>=none".

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/chan_kern.c
arch/um/drivers/line.c