From: Guennadi Liakhovetski Date: Fri, 4 Jul 2008 16:59:28 +0000 (-0700) Subject: serial: fix serial_match_port() for dynamic major tty-device numbers X-Git-Tag: v2.6.26-rc9~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca796f492a11f9408e661c8f22cd8c4f486b8e5;p=pandora-kernel.git 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 Tested-by: Vipul Gandhi Cc: Alan Cox Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed