From: Alan Cox Date: Thu, 28 May 2009 13:01:35 +0000 (+0100) Subject: 8250: Fix oops from setserial X-Git-Tag: v2.6.30-rc8~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e7e40abeac49644fec4a4f52ffe74c7b05eca0;p=pandora-kernel.git 8250: Fix oops from setserial If you setserial a port which has never been initialised we change the type but don't update the I/O method pointers. The same problem is true if you change the io type of a port - but nobody ever does that so nobody noticed! Remember the old type and when attaching if the type has changed reload the port accessor pointers. We can't do it blindly as some 8250 drivers load custom accessors and we must not stomp those. Tested-by: Victor Seryodkin Closes-bug: #13367 Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed