Guennadi Liakhovetski 7ca796f492 serial: fix serial_match_port() for dynamic major tty-device numbers
As reported by Vipul Gandhi, the current serial_match_port() doesn't work
for tty-devices using dynamic major number allocation.  Fix it.

It oopses if you suspend a serial port with _dynamic_ major number.  ATM,
I think, there's only the drivers/serial/jsm/jsm_driver.c driver, that
does it in-tree.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Tested-by: Vipul Gandhi <vcgandhi1@aol.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-04 10:40:04 -07:00
..
2008-06-11 16:50:40 -07:00
2008-06-12 18:05:40 -07:00
2008-05-24 09:56:11 -07:00
2008-05-20 16:44:43 +02:00
2008-06-19 06:50:32 -04:00
2008-06-19 00:12:36 +02:00
2008-05-20 13:31:55 -07:00
2008-04-29 08:06:18 -07:00
2008-05-21 16:56:00 -07:00
2008-06-30 15:43:52 -04:00
2008-05-20 13:31:55 -07:00
2008-04-30 08:29:52 -07:00
2008-04-30 08:29:52 -07:00