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-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-04 13:14:06 +00:00
2008-04-30 08:29:45 -07:00
2008-04-17 20:05:39 +02:00
2006-12-08 08:28:57 -08:00
2007-11-14 18:45:46 -08:00
2008-02-03 14:47:38 +02:00
2008-04-19 17:17:34 +01:00
2007-11-29 09:24:53 -08:00
2008-04-30 08:29:47 -07:00
2008-02-03 17:29:25 +02:00
2006-12-08 08:28:57 -08:00
2008-05-16 15:09:08 +09:00
2008-05-02 05:22:51 -07:00
2008-06-06 11:29:09 -07:00
2006-12-08 08:28:57 -08:00
2007-07-18 08:38:22 -07:00
2007-07-18 08:38:22 -07:00