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-04-30 08:29:54 -07:00
2008-05-01 08:04:01 -07:00
2007-05-11 17:19:02 +01:00
2008-05-01 08:04:00 -07:00
2006-12-07 08:39:35 -08: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
2006-06-30 19:25:36 +02:00
2008-05-24 09:56:09 -07:00
2008-03-04 16:35:09 -08:00
2008-05-31 16:10:04 +08:00
2008-05-31 16:10:04 +08:00
2008-02-04 13:14:06 +00:00
2008-04-30 08:29:45 -07:00
2006-06-30 19:25:36 +02:00
2008-04-30 08:29:54 -07:00
2007-06-05 19:39:49 +01:00
2008-04-17 20:05:39 +02:00
2008-06-06 11:29:12 -07:00
2008-06-19 17:46:39 +08:00
2008-04-30 08:29:30 -07:00
2008-04-30 08:29:30 -07:00
2006-12-08 08:28:57 -08:00
2008-05-12 07:27:38 -07:00
2007-11-14 18:45:46 -08:00
2008-04-28 08:58:16 -07:00
2008-02-07 08:42:24 -08:00
2008-01-24 20:40:09 -08:00
2008-02-03 14:47:38 +02:00
2008-04-19 17:17:34 +01:00
2008-04-30 08:29:54 -07:00
2008-04-30 08:29:54 -07:00
2007-11-29 09:24:53 -08:00
2008-05-17 18:22:26 +08:00
2008-04-30 08:29:47 -07:00
2006-06-30 19:25:36 +02:00
2008-03-04 16:35:16 -08:00
2007-10-16 09:43:04 -07:00
2008-04-30 08:29:30 -07:00
2008-04-15 19:35:40 -07:00
2008-05-14 19:11:12 -07:00
2006-06-30 19:25:36 +02:00
2008-05-01 11:59:12 -06:00
2008-04-15 19:35:40 -07:00
2008-02-03 17:29:25 +02:00
2008-04-30 08:29:45 -07:00
2008-04-24 13:32:46 -05:00
2007-09-22 14:49:21 +10:00
2006-12-08 08:28:57 -08:00
2008-04-15 19:35:40 -07:00
2008-04-15 19:35:40 -07:00
2008-04-30 08:29:54 -07:00
2008-04-30 08:29:54 -07:00
2008-06-06 11:29:09 -07:00
2008-04-15 19:35:40 -07:00
2008-07-04 10:40:04 -07:00
2008-02-05 09:44:08 -08:00
2007-05-30 13:15:19 +01:00
2006-12-08 08:28:57 -08:00
2007-10-30 08:06:55 -07:00
2008-05-16 15:09:08 +09:00
2008-05-08 19:51:59 +09:00
2008-04-30 08:29:54 -07:00
2007-12-29 01:19:49 -08:00
2007-12-12 07:36:34 -08:00
2008-05-20 23:42:09 -07:00
2008-05-02 05:22:51 -07:00
2008-05-02 05:22:51 -07:00
2008-05-02 05:22:51 -07:00
2007-05-09 13:49:04 -07:00
2008-04-30 08:29:54 -07:00
2008-06-06 11:29:09 -07:00
2006-12-08 08:28:57 -08:00
2008-04-28 08:58:30 -07:00
2007-07-18 08:38:22 -07:00
2007-07-18 08:38:22 -07:00